From 9d9a70d81d87849971add8588dc47120db81bc9d Mon Sep 17 00:00:00 2001 From: Will Norris Date: Sun, 17 Aug 2025 08:26:59 -0700 Subject: [PATCH] client/systray: disable 'more settings' menu if backend not running Updates #1708 Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d Signed-off-by: Will Norris --- client/systray/systray.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/systray/systray.go b/client/systray/systray.go index 98c6156b8..b1bc45fa8 100644 --- a/client/systray/systray.go +++ b/client/systray/systray.go @@ -306,11 +306,14 @@ func (menu *Menu) rebuild() { menu.rebuildExitNodeMenu(ctx) } - if menu.status != nil { - menu.more = systray.AddMenuItem("More settings", "") + menu.more = systray.AddMenuItem("More settings", "") + if menu.status != nil && menu.status.BackendState == "Running" { + // web client is only available if backend is running onClick(ctx, menu.more, func(_ context.Context) { webbrowser.Open("http://100.100.100.100/") }) + } else { + menu.more.Disable() } // TODO(#15528): this menu item shouldn't be necessary at all,