summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--systray.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/systray.go b/systray.go
index 1507ff6..1281a77 100644
--- a/systray.go
+++ b/systray.go
@@ -105,14 +105,17 @@ func (bt *bmTray) onReady() {
case <-bt.mTurnOn.ClickedCh:
log.Println("on")
+ bt.changeStatus("starting")
bt.bm.StartVPN(provider)
bt.conf.setUserStoppedVPN(false)
case <-bt.mTurnOff.ClickedCh:
log.Println("off")
+ bt.changeStatus("stopping")
bt.bm.StopVPN()
bt.conf.setUserStoppedVPN(true)
case <-bt.mCancel.ClickedCh:
log.Println("cancel")
+ bt.changeStatus("stopping")
bt.bm.StopVPN()
bt.conf.setUserStoppedVPN(true)