diff options
-rw-r--r-- | ui/tunnelspage.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/tunnelspage.go b/ui/tunnelspage.go index 3c60b728..11b2acd6 100644 --- a/ui/tunnelspage.go +++ b/ui/tunnelspage.go @@ -15,7 +15,6 @@ import ( "strings" "github.com/lxn/walk" - "github.com/lxn/win" "golang.zx2c4.com/wireguard/windows/conf" "golang.zx2c4.com/wireguard/windows/manager" @@ -556,11 +555,10 @@ func (tp *TunnelsPage) swapFiller(enabled bool) bool { if tp.fillerContainer.Visible() == enabled { return enabled } - //tp.SetSuspended(true) TODO: uncomment me! it's the right thing to do. But see WM_SIZING hack. + tp.SetSuspended(true) tp.fillerContainer.SetVisible(enabled) tp.currentTunnelContainer.SetVisible(!enabled) - 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. + tp.SetSuspended(false) return enabled } |