[client] Feed tray status via direct callback instead of the event bus

This commit is contained in:
Zoltán Papp
2026-07-28 16:43:48 +02:00
parent 8a43f4f943
commit b6deed39fb
3 changed files with 30 additions and 14 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ func NewTray(app *application.App, window *application.WebviewWindow, svc TraySe
// menu (e.g. GNOME Shell AppIndicator).
bindTrayClick(t)
app.Event.On(services.EventStatusSnapshot, t.onStatusEvent)
svc.DaemonFeed.OnStatus(t.applyStatus)
app.Event.On(services.EventDaemonNotification, t.onSystemEvent)
// Refresh the Profiles submenu on ProfileSwitcher's change event. A
// switch on an idle daemon drives no status transition, so without this