diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-08 20:43:51 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-08 20:43:51 +0200 |
commit | cc9142b42a8dc686187163d42c89c7c76d7a3c1b (patch) | |
tree | 020641606d4642c8d740c6675fc57811d7b39f5e /ui/tunnelspage.go | |
parent | ui: don't allow ctrl+a on empty list to hide filler (diff) | |
download | wireguard-windows-cc9142b42a8dc686187163d42c89c7c76d7a3c1b.tar.xz wireguard-windows-cc9142b42a8dc686187163d42c89c7c76d7a3c1b.zip |
ui: fix ctrl+a on list invalidating list
Diffstat (limited to '')
-rw-r--r-- | ui/tunnelspage.go | 7 |
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 } |