mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-11-24 22:09:14 +00:00
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. |
||
|---|---|---|
| .. | ||
| dist | ||
| Scripts | ||
| src | ||
| src-tauri | ||
| .gitignore | ||
| DEVELOPMENT.md | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| tokens.json | ||
| tsconfig.json | ||
| vite.config.ts | ||