mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-10-15 10:59:18 +00:00
fix: quit tray on graceful shutdown (#1295)
This commit is contained in:
1 parent
875c9cb51e
commit
fd8b2b2df4
1 file changed
+4
-1
@@ -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() {})
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user