mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-29 09:11:17 +01:00
Persist a per-trainer auto_connect_<trainerKey> flag via Settings. Set to true whenever the user explicitly starts the emulator (tap in the Trainer & Accessories list, or the Connect button on the disconnected card). Clear to false when they tap Disconnect (or Disconnect & forget). In Connection._handleConnectionQueue's proxy branch, after the shared listener setup finishes, check the flag for the scanned ProxyDevice — if set and nothing else is in flight, pick up the saved retrofit mode and fire startProxy() so the emulator is ready by the time the user opens the details page (or without opening it at all).