diff options
author | Grant Limberg <grant.limberg@zerotier.com> | 2017-02-22 16:54:57 -0800 |
---|---|---|
committer | Grant Limberg <grant.limberg@zerotier.com> | 2017-02-22 16:54:57 -0800 |
commit | 33b94e8478e99d1e185041fa522b01de25fe53d4 (patch) | |
tree | 7c53b150e2690caf679ef1b9e1af48f25063c3b2 /windows/WinUI/NetworkInfoView.xaml.cs | |
parent | 2ee53b0e7595dacd8a3dca59293577623435d0b2 (diff) | |
download | infinitytier-33b94e8478e99d1e185041fa522b01de25fe53d4.tar.gz infinitytier-33b94e8478e99d1e185041fa522b01de25fe53d4.zip |
fixed double firing of the leave network API call causing an error popup on windows
Diffstat (limited to 'windows/WinUI/NetworkInfoView.xaml.cs')
-rw-r--r-- | windows/WinUI/NetworkInfoView.xaml.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/windows/WinUI/NetworkInfoView.xaml.cs b/windows/WinUI/NetworkInfoView.xaml.cs index d58ba20a..1f99a1fe 100644 --- a/windows/WinUI/NetworkInfoView.xaml.cs +++ b/windows/WinUI/NetworkInfoView.xaml.cs @@ -80,8 +80,14 @@ namespace WinUI this.allowGlobal.IsChecked = network.AllowGlobal; this.allowManaged.IsChecked = network.AllowManaged; + this.connectedCheckBox.Checked -= connectedCheckBox_Checked; + this.connectedCheckBox.Unchecked -= connectedCheckbox_Unchecked; + this.connectedCheckBox.IsChecked = network.IsConnected; - } + + this.connectedCheckBox.Checked += connectedCheckBox_Checked; + this.connectedCheckBox.Unchecked += connectedCheckbox_Unchecked; + } public bool HasNetwork(ZeroTierNetwork network) { |