aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/ui.go
diff options
context:
space:
mode:
Diffstat (limited to 'ui/ui.go')
-rw-r--r--ui/ui.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/ui.go b/ui/ui.go
index 39d2ba23..abb528b3 100644
--- a/ui/ui.go
+++ b/ui/ui.go
@@ -132,10 +132,9 @@ func RunUI() {
}
})
- err := service.IPCClientRegisterAsNotificationThread()
- if err != nil {
- walk.MsgBox(mw, "Unable to register for notifications", err.Error(), walk.MsgBoxIconError)
- os.Exit(1)
- }
+ service.IPCClientRegisterTunnelChange(func(tunnel string) {
+ walk.MsgBox(mw, "Tunnel Changed", "The tunnel that changed is: "+tunnel, walk.MsgBoxIconInformation)
+ })
+
mw.Run()
}