aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/editdialog.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/editdialog.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 '')
-rw-r--r--ui/editdialog.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/editdialog.go b/ui/editdialog.go
index ff1ecca9..5c6d0ac0 100644
--- a/ui/editdialog.go
+++ b/ui/editdialog.go
@@ -78,7 +78,7 @@ func newEditDialog(owner walk.Form, tunnel *manager.Tunnel) (*EditDialog, error)
dlg.SetTitle(title)
dlg.SetLayout(layout)
dlg.SetMinMaxSize(walk.Size{500, 400}, walk.Size{0, 0})
- if icon, err := loadSystemIcon("imageres", 109, 32); err == nil {
+ if icon, err := loadSystemIcon("imageres", -114, 32); err == nil {
dlg.SetIcon(icon)
}