diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-08 10:40:42 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-05-08 10:40:42 +0200 |
commit | 3736c9b7462cf1e0f7d009da524df0573891dd05 (patch) | |
tree | 39c75fee3763f342c12b13bf2597ae722ff18682 | |
parent | service: waste a page due to sheer incompetence (diff) | |
download | wireguard-windows-3736c9b7462cf1e0f7d009da524df0573891dd05.tar.xz wireguard-windows-3736c9b7462cf1e0f7d009da524df0573891dd05.zip |
confview: show in the case that there are no peers
-rw-r--r-- | ui/confview.go | 8 |
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) } |