Просмотр исходного кода

client/systray: set consistent ID for StatusNotifierItem

Fixes #18736

Change-Id: Ia101a4a3005adb9118051b3416f5a64a4a45987d
Signed-off-by: Will Norris <[email protected]>
Will Norris 3 недель назад
Родитель
Сommit
4044e05dfd
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      client/systray/systray.go

+ 5 - 0
client/systray/systray.go

@@ -171,6 +171,11 @@ tailscale systray
 See https://tailscale.com/kb/1597/linux-systray for more information.`)
 	}
 	setAppIcon(disconnected)
+
+	// set initial title, which is used by the systray package as the ID of the StatusNotifierItem.
+	// This value will get overwritten later as the client status changes.
+	systray.SetTitle("tailscale")
+
 	menu.rebuild()
 
 	menu.mu.Lock()