From 3c67bb1a927878aef137578042982d8de40e0f77 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 13 May 2019 13:10:22 +0200 Subject: 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. --- ui/confview.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ui/confview.go') 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! } -- cgit v1.2.3-59-g8ed1b