diff options
author | 2021-11-26 09:45:46 +0100 | |
---|---|---|
committer | 2021-11-26 09:45:46 +0100 | |
commit | 8120d07dd5fc9a5e545419fe13490086ce920f31 (patch) | |
tree | 8e369e27d99c2f1f2dcbda20654ee415876bc084 | |
parent | build: switch to go.dev (diff) | |
download | wireguard-windows-8120d07dd5fc9a5e545419fe13490086ce920f31.tar.xz wireguard-windows-8120d07dd5fc9a5e545419fe13490086ce920f31.zip |
ui: only set "(out of date)" window title if admin user
Hopefully this scares users less, while keeping the update tab so that
they still annoy their sysadmins to update.
Reported-by: Bruno Andry <bandry@ut1.org>
Discussed-with: Diab Neiroukh <lazerl0rd@thezest.dev>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | ui/managewindow.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/managewindow.go b/ui/managewindow.go index 74f205a9..15e93e9c 100644 --- a/ui/managewindow.go +++ b/ui/managewindow.go @@ -179,7 +179,9 @@ func (mtw *ManageTunnelsWindow) UpdateFound() { if mtw.updatePage != nil { return } - mtw.SetTitle(l18n.Sprintf("%s (out of date)", mtw.Title())) + if IsAdmin { + mtw.SetTitle(l18n.Sprintf("%s (out of date)", mtw.Title())) + } updatePage, err := NewUpdatePage() if err == nil { mtw.updatePage = updatePage |