diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-27 16:42:07 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-04-27 16:42:07 +0200 |
commit | cf1ea912694c2b215823ccac0ba1da99fa11362e (patch) | |
tree | 5fef2826f4b0aee897900c9277e85b2a395f3599 /ui/tray.go | |
parent | ui: fix UI hide/quit logic (diff) | |
download | wireguard-windows-cf1ea912694c2b215823ccac0ba1da99fa11362e.tar.xz wireguard-windows-cf1ea912694c2b215823ccac0ba1da99fa11362e.zip |
ui: set tray check to original state because change is async
Diffstat (limited to '')
-rw-r--r-- | ui/tray.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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() |