diff options
author | Alexander Neumann <alexander.neumann@picos-software.com> | 2019-06-04 18:02:48 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-06-07 11:31:53 +0200 |
commit | dc253f90e40dbe86b5271ebfb6eec32aba9ca271 (patch) | |
tree | 977605b6140f45b60bbbe44bddb7bc4ffd19e5ca /ui/tunnelspage.go | |
parent | tunnel: retain SeLoadDriverPrivilege (diff) | |
download | wireguard-windows-dc253f90e40dbe86b5271ebfb6eec32aba9ca271.tar.xz wireguard-windows-dc253f90e40dbe86b5271ebfb6eec32aba9ca271.zip |
ui: get rid of hacks in tunnelspage
Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/tunnelspage.go')
-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 } |