From bfabc2446fcfc18879aa5fe9069da5966a1b9b51 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Mon, 25 Mar 2019 17:21:57 +0100 Subject: ui: Remove WM_SIZING hack from ConfView, fixed bug in walk Signed-off-by: Alexander Neumann --- ui/confview.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ui/confview.go') diff --git a/ui/confview.go b/ui/confview.go index 11855987..138d4aa7 100644 --- a/ui/confview.go +++ b/ui/confview.go @@ -7,14 +7,15 @@ package ui import ( "fmt" - "github.com/lxn/walk" - "github.com/lxn/win" - "golang.org/x/sys/windows" - "golang.zx2c4.com/wireguard/windows/conf" "reflect" "strconv" "strings" "unsafe" + + "github.com/lxn/walk" + "github.com/lxn/win" + "golang.org/x/sys/windows" + "golang.zx2c4.com/wireguard/windows/conf" ) type labelTextLine struct { @@ -267,7 +268,6 @@ func (cv *ConfView) setConfiguration(c *conf.Config) { defer func() { if hasSuspended { cv.SetSuspended(false) - cv.SendMessage(win.WM_SIZING, 0, 0) //TODO: FILTHY HACK! And doesn't work when items disappear. } }() title := "Interface: " + c.Name -- cgit v1.2.3-59-g8ed1b