This commit is contained in:
jahruz67
2026-05-08 17:09:25 -07:00
parent afe0692da3
commit 5bf321b22e
6 changed files with 94 additions and 10 deletions
+8
View File
@@ -74,6 +74,14 @@ func (a *App) startup(ctx context.Context) {
// Initialize components
a.startupHeadless()
// When the user launches the app again while it is already running (tray-only),
// the second process signals us here so the settings window becomes visible.
go func() {
for range secondInstanceWake {
wailsruntime.WindowShow(ctx)
}
}()
// Start system tray in a goroutine
go tray.Start(a)
}