mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-14 03:06:54 +02:00
fixed double firing of the leave network API call causing an error popup on windows
This commit is contained in:
parent
2ee53b0e75
commit
33b94e8478
1 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue