mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-12 16:13:25 -07:00
add UI elements in network details for allowDefault, allowGlobal, allowManaged
This commit is contained in:
parent
7e17a2072c
commit
d57e343245
4 changed files with 222 additions and 139 deletions
|
@ -77,6 +77,23 @@ class ShowNetworksViewController: NSViewController, NSTableViewDelegate, NSTable
|
|||
cell.deviceField.stringValue = network.portDeviceName
|
||||
|
||||
|
||||
if network.allowDefault {
|
||||
cell.allowDefault.state = NSOnState
|
||||
}
|
||||
else {
|
||||
cell.allowDefault.state = NSOffState
|
||||
|
||||
if defaultRouteExists(networkList) {
|
||||
cell.allowDefault.enabled = false
|
||||
}
|
||||
else {
|
||||
cell.allowDefault.enabled = true
|
||||
}
|
||||
}
|
||||
|
||||
cell.allowGlobal.state = (network.allowGlobal ? NSOnState : NSOffState)
|
||||
cell.allowManaged.state = (network.allowManaged ? NSOnState : NSOffState)
|
||||
|
||||
cell.addressesField.stringValue = ""
|
||||
|
||||
for nw in network.assignedAddresses {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue