aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-13 13:10:22 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-13 14:21:38 +0200
commit0c8ca00813801ff9e7d82e903393b4699d2b9e89 (patch)
tree6bda563508f77d24af6f7b98ec8acaa1997879b4
parentui: add easter egg (diff)
downloadwireguard-windows-0c8ca00813801ff9e7d82e903393b4699d2b9e89.tar.xz
wireguard-windows-0c8ca00813801ff9e7d82e903393b4699d2b9e89.zip
ui: always do WM_SIZING hack in confview
Gets around the situation where a row is hidden in the interface but not the peer and a gap is left. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--ui/confview.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/confview.go b/ui/confview.go
index b157406e..11226cc4 100644
--- a/ui/confview.go
+++ b/ui/confview.go
@@ -558,9 +558,7 @@ func (cv *ConfView) setTunnel(tunnel *service.Tunnel, config *conf.Config, state
}()
title := "Interface: "
if cv.name.Title() == title {
- //TODO: This here is a filthy hack that shouldn't be required!
suspend()
- cv.SendMessage(win.WM_SIZING, 0, 0)
}
title += config.Name
if cv.name.Title() != title {
@@ -620,4 +618,5 @@ func (cv *ConfView) setTunnel(tunnel *service.Tunnel, config *conf.Config, state
groupBox.Parent().Children().Remove(groupBox)
groupBox.Dispose()
}
+ cv.SendMessage(win.WM_SIZING, 0, 0) //TODO: This here is a filthy hack that shouldn't be required!
}