mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-07-13 21:47:04 +00:00
fix: quit tray on graceful shutdown (#1295)
This commit is contained in:
@@ -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