From cf1ea912694c2b215823ccac0ba1da99fa11362e Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sat, 27 Apr 2019 16:42:07 +0200 Subject: ui: set tray check to original state because change is async --- ui/tray.go | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/tray.go') diff --git a/ui/tray.go b/ui/tray.go index 3204d861..85ba9d54 100644 --- a/ui/tray.go +++ b/ui/tray.go @@ -137,6 +137,7 @@ func (tray *Tray) addTunnelAction(tunnel *service.Tunnel) { tunnelAction.SetCheckable(true) tclosure := *tunnel tunnelAction.Triggered().Attach(func() { + tunnelAction.SetChecked(!tunnelAction.Checked()) oldState, err := tclosure.Toggle() if err != nil { tray.mtw.Show() -- cgit v1.2.3-59-g8ed1b