mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-29 09:11:17 +01:00
Auto-show: - Navigation initState now subscribes to core.connection.connectionStream when the persisted overlay_enabled flag is true. The first connected smart trainer with a FitnessBikeDefinition triggers TrainerOverlayService.show(...) with the persisted overlay fields. - Subscription is one-shot (cancels itself after a successful show) and also checks already-connected devices on mount, so the overlay reopens whether the trainer was reconnected before or after Navigation mounted. Debug-log cleanup: - Removed the `bikecontrol_dart_alive.log` liveness probe, the `[main:entry]` / `[main:entry/stderr]` print + stderr.writeln, the `[overlay-main]` step-by-step logs in the sub-window dispatch, the `[main:wm-spy]` channel-handler wrapper, the `[overlay-run]` / `[overlay-sub]` action logs in desktop_overlay_window, the `[overlay-main]` action-receive / dispatch-fail logs in desktop_overlay_controller, the `[main]` Android handler-retry logs, and the noisy `[multi_window_native] CreateNewWindow` cerr in the Windows runner. - Kept catch handlers as silent (or kDebugMode-guarded) where the original error path was still useful. Also: MainFlutterWindow simplified back to NSWindow — the vendored multi_window_native plugin now creates the overlay sub-window as an NSPanel with .screenSaver level + .fullScreenAuxiliary itself, so the main window no longer needs the canBecomeMain/canBecomeKey NSPanel overrides or the .normal level pin. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>