You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(gui): recognize running bridge + single-instance for settings window
Two bugs causing the user-visible confusion in today's session:
1. _bridge_process_running() was hard-coded to look for
"360booking-bridge-setup.exe", but after the --install flow the
binary lives in Program Files as "360booking-bridge.exe" (no
-setup suffix). Result: GUI always showed "Proces: oprit" with
grey/red dots even though services.msc correctly reported RUNNING.
Now checks both names AND falls back to `sc query` of the service
so a non-admin user session that can't see LocalSystem processes
in tasklist still gets the right answer.
2. Every click on tray → "Deschide setări bridge" spawned a fresh
subprocess of `<exe> --gui`, piling up windows ("refreshul ala
ciudat se tot deschide o fereastra"). Added a single-instance
check via FindWindowW — if a window with the "360booking Fiscal
Bridge" title already exists, raise it to front and exit instead
of creating a second copy.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>