mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-08 15:18:05 +03:00
After the user clicks Relaunch on the warning row, the new instance started hidden in the menu bar — no visible confirmation that the relaunch actually worked. Present the window on that specific launch so the user sees the app come up healthy. Mechanism: relaunch_bundle() sets LAN_MOUSE_RELAUNCHED=1 via `open --env` when spawning the new instance. build_ui reads the env var and calls window.present() only when it's set. Normal fresh launches (from Finder / Dock / Launchpad / any other Launch Services path) continue to start hidden in the menu bar. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>