From 66dc6319bce3032fb494291722e9a2ff29f50078 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Thu, 23 May 2019 16:11:48 +0200 Subject: ui: confview: hide groupbox when removing This prevents us from loosing focus for a second. Signed-off-by: Jason A. Donenfeld --- ui/confview.go | 1 + 1 file changed, 1 insertion(+) (limited to 'ui') diff --git a/ui/confview.go b/ui/confview.go index d8984d00..9c3315bb 100644 --- a/ui/confview.go +++ b/ui/confview.go @@ -577,6 +577,7 @@ func (cv *ConfView) setTunnel(tunnel *manager.Tunnel, config *conf.Config, state suspend() delete(cv.peers, *k) groupBox := pv.publicKey.label.Parent().AsContainerBase().Parent().(*walk.GroupBox) + groupBox.SetVisible(false) groupBox.Parent().Children().Remove(groupBox) groupBox.Dispose() } -- cgit v1.2.3-59-g8ed1b