From 6c9eadbb88d233925a34fb16b088053d0278ac34 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 4 Jun 2019 18:02:48 +0200 Subject: ui: get rid of hacks in tunnelspage Signed-off-by: Alexander Neumann --- ui/tunnelspage.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ui/tunnelspage.go') 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 } -- cgit v1.2.3-59-g8ed1b