aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAnthony Dong <aanthony.dong@gmail.com>2019-03-25 19:09:27 +0100
committerAlexander Neumann <alexander.neumann@picos-software.com>2019-04-23 11:04:59 +0200
commit9e04b071b963dbf0ed21a76d9e4122152c8fa503 (patch)
tree05c43dbf1ece5b81455d83213b471147140ebf22
parentui: fix invalid layout direction (diff)
downloadwireguard-windows-9e04b071b963dbf0ed21a76d9e4122152c8fa503.tar.xz
wireguard-windows-9e04b071b963dbf0ed21a76d9e4122152c8fa503.zip
ui: fix splitter layout not displaying widgets
Signed-off-by: Anthony Dong <aanthony.dong@gmail.com>
-rw-r--r--ui/manage_tunnels.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/manage_tunnels.go b/ui/manage_tunnels.go
index 8eea6e8d..c7673776 100644
--- a/ui/manage_tunnels.go
+++ b/ui/manage_tunnels.go
@@ -53,6 +53,10 @@ func (mtw *ManageTunnelsWindow) setup() error {
})
splitter, _ := walk.NewHSplitter(mtw)
+ splitter.SetSuspended(true)
+ defer func() {
+ splitter.SetSuspended(false)
+ }()
tunnelsContainer, _ := walk.NewComposite(splitter)
tunnelsContainer.SetLayout(walk.NewVBoxLayout())