aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/tray.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-11 16:44:30 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-16 18:17:05 +0100
commit08315b0f281d5871ed3dafb1a3ec89bfea33571e (patch)
tree510f844663cd9d34c76369443bab8045a12ef2bd /ui/tray.go
parentui: remove systray popup menu tunnel list (diff)
downloadwireguard-windows-08315b0f281d5871ed3dafb1a3ec89bfea33571e.tar.xz
wireguard-windows-08315b0f281d5871ed3dafb1a3ec89bfea33571e.zip
ui: use resource numbers instead of resource indices
This makes it stable between Windows versions. HOWEVER! We're still using "1" instead of SHIDI_SHIELD_INTERNAL, because the latter is named instead of numbered. This is a TODO item. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/tray.go')
-rw-r--r--ui/tray.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/tray.go b/ui/tray.go
index 37c3af25..5288d91e 100644
--- a/ui/tray.go
+++ b/ui/tray.go
@@ -113,7 +113,7 @@ func (tray *Tray) onTunnelChange(tunnel *manager.Tunnel, state manager.TunnelSta
tray.ShowCustom(l18n.Sprintf("WireGuard Activated"), l18n.Sprintf("The %s tunnel has been activated.", tunnel.Name), icon)
case manager.TunnelStopped:
- icon, _ := loadSystemIcon("imageres", 26, 128) // TODO: this icon isn't very good...
+ icon, _ := loadSystemIcon("imageres", -31, 128) // TODO: this icon isn't very good...
tray.ShowCustom(l18n.Sprintf("WireGuard Deactivated"), l18n.Sprintf("The %s tunnel has been deactivated.", tunnel.Name), icon)
}
} else if !tray.mtw.Visible() {