codeburn/windows/src-tauri/src
iamtoruk eb6f5de6f0 fix(windows): --quit reaches a running app again
The early return that answered --quit before the Tauri builder ran also skipped
the thing that delivers it. Handing a second launch's argv to the instance that
is already running is the single-instance plugin's job, and the plugin only gets
to do it if the builder runs, so returning first meant the running app never
heard the request: the desktop app's Menu bar switch dropped the Run value and
sent --quit, and the tray app carried on.

It is answered in setup now, where a launch that reached that point is by
definition the only instance: with nothing running it is the one being asked to
go, and it exits without showing anything. With something running the plugin
delivers the argv and this process never reaches setup at all.

Found by driving the switch against the installed app rather than by a test: the
argv parsing this rests on was unit-tested and correct, and the delivery it
depends on was not something a unit test could see.
2026-09-02 07:55:25 -07:00
..
autostart.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
cli.rs feat(windows): export into Downloads and reveal what came out 2026-09-02 00:17:50 -07:00
config.rs feat(windows): a settings window, with General, About and provider panes 2026-09-01 19:49:37 -07:00
dock.rs fix(windows): the rail keeps its edge while the size changes 2026-09-02 01:29:53 -07:00
fx.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
lib.rs fix(windows): --quit reaches a running app again 2026-09-02 07:55:25 -07:00
main.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
plan.rs windows: fix the security and correctness findings from the import audit 2026-08-18 04:10:07 -07:00
refresh.rs feat(windows): a background refresh with nothing new to read is skipped 2026-09-01 23:27:35 -07:00
session.rs feat(windows): no background refresh while nobody can see the tray 2026-09-01 23:00:09 -07:00
settings.rs fix(windows): the daily budget lives where the CLI keeps it 2026-09-02 00:51:59 -07:00
tray_badge.rs feat(windows): the tray says when a paired device did not report 2026-09-02 01:39:10 -07:00
tray_linux.rs windows: import the Tauri tray app as the Windows menubar 2026-08-18 04:00:59 -07:00
tray_status.rs fix(windows): the daily budget lives where the CLI keeps it 2026-09-02 00:51:59 -07:00
update.rs feat(windows): the update checker stands down inside a Store package 2026-09-02 04:29:52 -07:00
usage_guard.rs chore(windows): remove what nothing reads 2026-09-02 00:23:16 -07:00