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:
Grant Limberg 2016-06-26 17:33:46 -07:00
parent d57e343245
commit 1756e8b0f2
3 changed files with 25 additions and 5 deletions

View file

@ -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