diff options
Diffstat (limited to 'ui/updatepage.go')
-rw-r--r-- | ui/updatepage.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ui/updatepage.go b/ui/updatepage.go index 88992ced..ff2bbe5f 100644 --- a/ui/updatepage.go +++ b/ui/updatepage.go @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: MIT * - * Copyright (C) 2019-2021 WireGuard LLC. All Rights Reserved. + * Copyright (C) 2019-2022 WireGuard LLC. All Rights Reserved. */ package ui @@ -31,7 +31,7 @@ func NewUpdatePage() (*UpdatePage, error) { up.SetTitle(l18n.Sprintf("An Update is Available!")) - tabIcon, _ := loadSystemIcon("imageres", 1, 16) + tabIcon, _ := loadShieldIcon(16) up.SetImage(tabIcon) up.SetLayout(walk.NewVBoxLayout()) @@ -64,6 +64,12 @@ func NewUpdatePage() (*UpdatePage, error) { button.SetImage(updateIcon) button.SetText(l18n.Sprintf("Update Now")) + if !IsAdmin { + button.SetText(l18n.Sprintf("Please ask the system administrator to update.")) + button.SetEnabled(false) + status.SetText(l18n.Sprintf("Status: Waiting for administrator")) + } + walk.NewVSpacer(up) switchToUpdatingState := func() { |