diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-19 10:17:32 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-19 17:02:35 +0100 |
commit | 2d409c131114b6bd578c86f62a571600017dd53d (patch) | |
tree | 2f15eceac9cc1b7d650e1be9400c1f97b238bb07 /ui/tray.go | |
parent | build: bump golang version to 1.15.5 (diff) | |
download | wireguard-windows-2d409c131114b6bd578c86f62a571600017dd53d.tar.xz wireguard-windows-2d409c131114b6bd578c86f62a571600017dd53d.zip |
ui: add status icon to context menu
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/tray.go')
-rw-r--r-- | ui/tray.go | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -290,6 +290,10 @@ func (tray *Tray) updateGlobalState(globalState manager.TunnelState) { tray.SetToolTip(l18n.Sprintf("WireGuard: %s", textForState(globalState, true))) stateText := textForState(globalState, false) + stateIcon, err := iconForState(globalState, 16) + if err == nil { + statusAction.SetImage(stateIcon) + } statusAction.SetText(l18n.Sprintf("Status: %s", stateText)) go func() { |