mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
allow DNS field for mac UI
This commit is contained in:
parent
04f6140da6
commit
e7dafb3ae6
12 changed files with 195 additions and 132 deletions
|
@ -158,16 +158,19 @@ BOOL hasNetworkWithID(NSArray<Network*> *list, UInt64 nwid)
|
|||
|
||||
cell.allowGlobal.enabled = YES;
|
||||
cell.allowManaged.enabled = YES;
|
||||
cell.allowDNS.enabled = YES;
|
||||
}
|
||||
else {
|
||||
cell.connectedCheckbox.state = NSOffState;
|
||||
cell.allowDefault.enabled = NO;
|
||||
cell.allowGlobal.enabled = NO;
|
||||
cell.allowManaged.enabled = NO;
|
||||
cell.allowDNS.enabled = NO;
|
||||
}
|
||||
|
||||
cell.allowGlobal.state = network.allowGlobal ? NSOnState : NSOffState;
|
||||
cell.allowManaged.state = network.allowManaged ? NSOnState : NSOffState;
|
||||
cell.allowDNS.state = network.allowDNS ? NSOnState : NSOffState;
|
||||
|
||||
cell.addressesField.stringValue = @"";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue