Commit 8e820b2
authored
🤖 fix: guard activate handler against services race condition (#1064)
On macOS, clicking the dock icon during startup (while splash is visible
and services are loading) fires the activate event. The handler was
calling `createWindow()` without checking if services were initialized,
causing an assertion failure:
```
AssertionError: Services must be loaded before creating window
at createWindow (src/desktop/main.ts:409:9)
at App.<anonymous> (src/desktop/main.ts:611:7)
```
**Fix:** Added `services` check to the activate handler condition. If
services aren't ready, the handler does nothing and normal startup flow
creates the window.
---
_Generated with `mux`_1 parent a3edb20 commit 8e820b2
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
610 | | - | |
| 610 | + | |
| 611 | + | |
611 | 612 | | |
612 | 613 | | |
613 | 614 | | |
| |||
0 commit comments