diff options
-rw-r--r-- | systray.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |