aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-05-08 10:40:42 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-05-08 10:40:42 +0200
commit3736c9b7462cf1e0f7d009da524df0573891dd05 (patch)
tree39c75fee3763f342c12b13bf2597ae722ff18682 /ui
parentservice: waste a page due to sheer incompetence (diff)
downloadwireguard-windows-3736c9b7462cf1e0f7d009da524df0573891dd05.tar.xz
wireguard-windows-3736c9b7462cf1e0f7d009da524df0573891dd05.zip
confview: show in the case that there are no peers
Diffstat (limited to 'ui')
-rw-r--r--ui/confview.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/confview.go b/ui/confview.go
index 518164ca..515cadde 100644
--- a/ui/confview.go
+++ b/ui/confview.go
@@ -545,7 +545,13 @@ func (cv *ConfView) setTunnel(tunnel *service.Tunnel, config *conf.Config, state
cv.SetSuspended(false)
}
}()
- title := "Interface: " + config.Name
+ 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 {
cv.name.SetTitle(title)
}