fix: quit tray on graceful shutdown (#1295)

This commit is contained in:
phanirithvij
2026-07-13 11:35:48 +05:30
committed by GitHub
parent 875c9cb51e
commit fd8b2b2df4
+4 -1
View File
@@ -16,7 +16,10 @@ func startTray() {
status := newTrayStatus()
// Observe oplog status in-process so the icon can reflect backup state.
onOpLogReady = status.attach
go runApp()
go func() {
runApp()
systray.Quit()
}()
systray.Run(func() { onReady(status) }, func() {})
}