mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-16 10:03:14 -07:00
Wire up checkboxes for allowGlobal, allowDefault, allowManaged to set the proper state in zerotier daemon
checkboxes are disabled if the network is not currently connected.
This commit is contained in:
parent
d57e343245
commit
1756e8b0f2
3 changed files with 25 additions and 5 deletions
|
@ -103,9 +103,17 @@ class ShowNetworksViewController: NSViewController, NSTableViewDelegate, NSTable
|
|||
|
||||
if network.connected {
|
||||
cell.connectedCheckbox.state = NSOnState
|
||||
|
||||
cell.allowDefault.enabled = true
|
||||
cell.allowGlobal.enabled = true
|
||||
cell.allowManaged.enabled = true
|
||||
}
|
||||
else {
|
||||
cell.connectedCheckbox.state = NSOffState
|
||||
|
||||
cell.allowDefault.enabled = false
|
||||
cell.allowGlobal.enabled = false
|
||||
cell.allowManaged.enabled = false
|
||||
}
|
||||
|
||||
return cell
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue