aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/confview.go
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
commitce8f95415a7fe6ddfd988eccedb7313987a79298 (patch)
tree39c75fee3763f342c12b13bf2597ae722ff18682 /ui/confview.go
parentservice: waste a page due to sheer incompetence (diff)
downloadwireguard-windows-ce8f95415a7fe6ddfd988eccedb7313987a79298.tar.xz
wireguard-windows-ce8f95415a7fe6ddfd988eccedb7313987a79298.zip
confview: show in the case that there are no peers
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/confview.go')
-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)
}