aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/tunnelspage.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-08 20:43:51 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-08 20:43:51 +0200
commitb16c5218be3a85426d3d604c5144682490734e1c (patch)
tree020641606d4642c8d740c6675fc57811d7b39f5e /ui/tunnelspage.go
parentui: don't allow ctrl+a on empty list to hide filler (diff)
downloadwireguard-windows-b16c5218be3a85426d3d604c5144682490734e1c.tar.xz
wireguard-windows-b16c5218be3a85426d3d604c5144682490734e1c.zip
ui: fix ctrl+a on list invalidating list
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/tunnelspage.go')
-rw-r--r--ui/tunnelspage.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/ui/tunnelspage.go b/ui/tunnelspage.go
index addaaf25..0ef1842a 100644
--- a/ui/tunnelspage.go
+++ b/ui/tunnelspage.go
@@ -9,6 +9,7 @@ import (
"archive/zip"
"fmt"
"github.com/lxn/walk"
+ "github.com/lxn/win"
"golang.zx2c4.com/wireguard/windows/conf"
"golang.zx2c4.com/wireguard/windows/service"
"io/ioutil"
@@ -540,14 +541,14 @@ func (tp *TunnelsPage) onExportTunnels() {
}
func (tp *TunnelsPage) swapFiller(enabled bool) bool {
- //BUG: flicker switching with the currentTunnelContainer
if tp.fillerContainer.Visible() == enabled {
return enabled
}
- tp.SetSuspended(true)
+ //tp.SetSuspended(true) TODO: uncomment me! it's the right thing to do. But see WM_SIZING hack.
tp.fillerContainer.SetVisible(enabled)
tp.currentTunnelContainer.SetVisible(!enabled)
- tp.SetSuspended(false)
+ tp.SendMessage(win.WM_SIZING, 0, 0) //TODO: This hack shouldn't be neccessary
+ //tp.SetSuspended(false) TODO: uncomment me! it's the right thing to do. But see WM_SIZING hack.
return enabled
}