add UI elements in network details for allowDefault, allowGlobal, allowManaged

This commit is contained in:
Grant Limberg 2016-06-26 17:21:45 -07:00
commit d57e343245
4 changed files with 222 additions and 139 deletions

View file

@ -260,3 +260,13 @@ class Network: NSObject, NSCoding {
aCoder.encodeBool(self.allowDefault, forKey: PropertyKeys.allowDefaultKey)
}
}
func defaultRouteExists(netList: [Network]) -> Bool {
for net in netList {
if net.allowDefault {
return true
}
}
return false
}