From d5eda84a804243bcdc4535c5a27e7379e6b1ff55 Mon Sep 17 00:00:00 2001 From: Viktor Liu Date: Thu, 16 Apr 2026 06:08:01 +0200 Subject: [PATCH] Check features before status update to avoid transient menu enable --- client/ui/client_ui.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/ui/client_ui.go b/client/ui/client_ui.go index 4c36f3fef..c149b2152 100644 --- a/client/ui/client_ui.go +++ b/client/ui/client_ui.go @@ -1097,14 +1097,14 @@ func (s *serviceClient) onTrayReady() { s.getSrvConfig() time.Sleep(100 * time.Millisecond) // To prevent race condition caused by systray not being fully initialized and ignoring setIcon for { + // Check features before status so menus respect disable flags before being enabled + s.checkAndUpdateFeatures() + err := s.updateStatus() if err != nil { log.Errorf("error while updating status: %v", err) } - // Check features periodically to handle daemon restarts - s.checkAndUpdateFeatures() - time.Sleep(2 * time.Second) } }()