diff options
Diffstat (limited to 'ui/updatepage.go')
-rw-r--r-- | ui/updatepage.go | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/ui/updatepage.go b/ui/updatepage.go index 1ed0b74c..ff2bbe5f 100644 --- a/ui/updatepage.go +++ b/ui/updatepage.go @@ -1,6 +1,6 @@ /* SPDX-License-Identifier: MIT * - * Copyright (C) 2019 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()) @@ -60,10 +60,16 @@ func NewUpdatePage() (*UpdatePage, error) { if err != nil { return nil, err } - updateIcon, _ := loadSystemIcon("shell32", 46, 32) + updateIcon, _ := loadSystemIcon("shell32", -47, 32) 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() { |