aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/tray.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/tray.go')
-rw-r--r--ui/tray.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/tray.go b/ui/tray.go
index 26e06c4d..93b12c4c 100644
--- a/ui/tray.go
+++ b/ui/tray.go
@@ -160,11 +160,11 @@ func (tray *Tray) addTunnelAction(tunnel *manager.Tunnel) {
tray.mtw.tunnelsPage.listView.selectTunnel(tclosure.Name)
tray.mtw.tabs.SetCurrentIndex(0)
if oldState == manager.TunnelUnknown {
- walk.MsgBox(tray.mtw, "Failed to determine tunnel state", err.Error(), walk.MsgBoxIconError)
+ showErrorCustom(tray.mtw, "Failed to determine tunnel state", err.Error())
} else if oldState == manager.TunnelStopped {
- walk.MsgBox(tray.mtw, "Failed to activate tunnel", err.Error(), walk.MsgBoxIconError)
+ showErrorCustom(tray.mtw, "Failed to activate tunnel", err.Error())
} else if oldState == manager.TunnelStarted {
- walk.MsgBox(tray.mtw, "Failed to deactivate tunnel", err.Error(), walk.MsgBoxIconError)
+ showErrorCustom(tray.mtw, "Failed to deactivate tunnel", err.Error())
}
})
}