Skip to content

Commit 8120d07

Browse files
committed
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 <[email protected]> Discussed-with: Diab Neiroukh <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>
1 parent e36d373 commit 8120d07

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/managewindow.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ func (mtw *ManageTunnelsWindow) UpdateFound() {
179179
if mtw.updatePage != nil {
180180
return
181181
}
182-
mtw.SetTitle(l18n.Sprintf("%s (out of date)", mtw.Title()))
182+
if IsAdmin {
183+
mtw.SetTitle(l18n.Sprintf("%s (out of date)", mtw.Title()))
184+
}
183185
updatePage, err := NewUpdatePage()
184186
if err == nil {
185187
mtw.updatePage = updatePage

0 commit comments

Comments
 (0)