From 8120d07dd5fc9a5e545419fe13490086ce920f31 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 26 Nov 2021 09:45:46 +0100 Subject: 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 Discussed-with: Diab Neiroukh Signed-off-by: Jason A. Donenfeld --- ui/managewindow.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-59-g8ed1b