From fd8b2b2df44fbf9da72f9364a67a7326e06f3ffe Mon Sep 17 00:00:00 2001 From: phanirithvij Date: Mon, 13 Jul 2026 11:35:48 +0530 Subject: [PATCH] fix: quit tray on graceful shutdown (#1295) --- cmd/backrest/tray.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/backrest/tray.go b/cmd/backrest/tray.go index 68db4f2c..cca1b36c 100644 --- a/cmd/backrest/tray.go +++ b/cmd/backrest/tray.go @@ -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() {}) }