aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/tray.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2021-06-27 16:10:28 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2021-07-29 01:31:39 +0200
commit45feabe822cd0fbd85224cc2f2a9e8f4c678c98e (patch)
tree5e134383b9067822d62b9b0219c4ca9862b4f7bf /ui/tray.go
parentupdater: use correct constant for authentication verification and free (diff)
downloadwireguard-windows-45feabe822cd0fbd85224cc2f2a9e8f4c678c98e.tar.xz
wireguard-windows-45feabe822cd0fbd85224cc2f2a9e8f4c678c98e.zip
ui: account for shield icon move in recent insider builds
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/tray.go')
-rw-r--r--ui/tray.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/tray.go b/ui/tray.go
index 34e4b003..75ba17da 100644
--- a/ui/tray.go
+++ b/ui/tray.go
@@ -343,7 +343,7 @@ func (tray *Tray) setTunnelState(tunnel *manager.Tunnel, state manager.TunnelSta
func (tray *Tray) UpdateFound() {
action := walk.NewAction()
action.SetText(l18n.Sprintf("An Update is Available!"))
- menuIcon, _ := loadSystemIcon("imageres", 1, 16)
+ menuIcon, _ := loadShieldIcon(16)
action.SetImage(menuIcon)
action.SetDefault(true)
showUpdateTab := func() {
@@ -358,7 +358,7 @@ func (tray *Tray) UpdateFound() {
tray.ContextMenu().Actions().Insert(tray.ContextMenu().Actions().Len()-2, action)
showUpdateBalloon := func() {
- icon, _ := loadSystemIcon("imageres", 1, 128)
+ icon, _ := loadShieldIcon(128)
tray.ShowCustom(l18n.Sprintf("WireGuard Update Available"), l18n.Sprintf("An update to WireGuard is now available. You are advised to update as soon as possible."), icon)
}