diff options
Diffstat (limited to 'ui/tunnelspage.go')
-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 } |