aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/tray.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/tray.go b/ui/tray.go
index bb7250aa..ee4f31d5 100644
--- a/ui/tray.go
+++ b/ui/tray.go
@@ -206,8 +206,8 @@ func (tray *Tray) removeTunnelAction(tunnelName string) {
func (tray *Tray) onTunnelChange(tunnel *service.Tunnel, state service.TunnelState, globalState service.TunnelState, err error) {
tray.mtw.Synchronize(func() {
- tray.SetTunnelState(tunnel, state, err == nil)
tray.updateGlobalState(globalState)
+ tray.SetTunnelState(tunnel, state, err == nil)
if !tray.mtw.Visible() && err != nil {
tray.ShowError("WireGuard Tunnel Error", err.Error())
}