aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/tray.go
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui/tray.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/tray.go b/ui/tray.go
index 22c37ab4..ca839a83 100644
--- a/ui/tray.go
+++ b/ui/tray.go
@@ -278,3 +278,16 @@ func (tray *Tray) SetTunnelState(tunnel *service.Tunnel, state service.TunnelSta
tray.updateGlobalState()
}
+
+func (tray *Tray) UpdateFound() {
+ action := walk.NewAction()
+ action.SetText("An Update is Available!")
+ action.SetImage(iconProvider.updateAvailableImage)
+ //TODO: Make bold
+ action.Triggered().Attach(func() {
+ tray.mtw.Show()
+ tray.mtw.tabs.SetCurrentIndex(2)
+ })
+ tray.ContextMenu().Actions().Insert(tray.ContextMenu().Actions().Len()-2, action)
+ tray.ShowWarning("WireGuard Update Available", "An update to WireGuard is now available. You are advised to update as soon as possible.")
+}