aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-12 14:18:13 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-13 13:28:00 +0200
commita22c542e102a38b25c70e797d82ba09844b6faad (patch)
treebbc1c7da721bbcd6ec961b9d18161c3a7b3570cf
parentMakefile: remove unused variable (diff)
downloadwireguard-windows-a22c542e102a38b25c70e797d82ba09844b6faad.tar.xz
wireguard-windows-a22c542e102a38b25c70e797d82ba09844b6faad.zip
ui: do not overlay gray dot on icon
-rw-r--r--ui/iconprovider.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/iconprovider.go b/ui/iconprovider.go
index 9f6cc43..97738f8 100644
--- a/ui/iconprovider.go
+++ b/ui/iconprovider.go
@@ -37,6 +37,9 @@ func iconWithOverlayForState(state service.TunnelState, size int) (icon *walk.Ic
if err != nil {
return
}
+ if state == service.TunnelStopped {
+ return wireguardIcon, err //TODO: if we find something prettier than the gray dot, then remove this clause
+ }
iconSize := wireguardIcon.Size()
bmp, err := walk.NewBitmapWithTransparentPixels(iconSize)
if err != nil {