代码重构

代码重构,将导入导出功能移动到ServerProfileManager类下,移除BunchImportUtils.swift
This commit is contained in:
qinyuhang
2016-09-12 15:38:56 +08:00
parent 6c5af29cc2
commit ba9aebab4e
4 changed files with 141 additions and 12 deletions
+3 -3
View File
@@ -306,16 +306,16 @@ class AppDelegate: NSObject, NSApplicationDelegate, NSUserNotificationCenterDele
}
@IBAction func showBunchJsonExampleFile(sender: NSMenuItem) {
showExampleConfigFile()
ServerProfileManager.showExampleConfigFile()
}
@IBAction func importBunchJsonFile(sender: NSMenuItem) {
importConfigFile()
ServerProfileManager.instance.importConfigFile()
//updateServersMenu()//not working
}
@IBAction func exportAllServerProfile(sender: NSMenuItem) {
exportConfigFile()
ServerProfileManager.instance.exportConfigFile()
}
@IBAction func toggleLaunghAtLogin(sender: NSMenuItem) {