Rename is_valid to isValid

This commit is contained in:
Charlie Qiu
2016-06-09 05:44:18 +08:00
parent 2491224f7d
commit 33a093950e
4 changed files with 14 additions and 6 deletions

View File

@ -145,6 +145,14 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
}
@IBAction func selectPACMode(sender: NSMenuItem) {
}
@IBAction func selectGlobalMode(sender: NSMenuItem) {
}
@IBAction func editServerPreferences(sender: NSMenuItem) {
if preferencesWinCtrl != nil {
preferencesWinCtrl.close()
@ -212,7 +220,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
if mgr.activeProfileId == p.uuid {
item.state = 1
}
if !p.is_valid() {
if !p.isValid() {
item.enabled = false
}
item.action = #selector(AppDelegate.selectServer)