aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorAlexander Neumann <alexander.neumann@picos-software.com>2019-06-04 18:02:48 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-06-07 11:31:53 +0200
commit6c9eadbb88d233925a34fb16b088053d0278ac34 (patch)
tree977605b6140f45b60bbbe44bddb7bc4ffd19e5ca /ui
parenttunnel: retain SeLoadDriverPrivilege (diff)
downloadwireguard-windows-6c9eadbb88d233925a34fb16b088053d0278ac34.tar.xz
wireguard-windows-6c9eadbb88d233925a34fb16b088053d0278ac34.zip
ui: get rid of hacks in tunnelspage
Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/tunnelspage.go6
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
}