diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-11 16:44:30 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-11-16 18:17:05 +0100 |
commit | 08315b0f281d5871ed3dafb1a3ec89bfea33571e (patch) | |
tree | 510f844663cd9d34c76369443bab8045a12ef2bd /ui/tray.go | |
parent | ui: remove systray popup menu tunnel list (diff) | |
download | wireguard-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.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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() { |