|
@@ -33,10 +33,7 @@ class KMAccountInfoWindowController: NSWindowController {
|
|
//MARK: 打开文件
|
|
//MARK: 打开文件
|
|
static func show(window: NSWindow, _ type: DataNavigationViewButtonActionType = .Batch, _ logType: KMRegisterLogType = .login) -> KMAccountInfoWindowController {
|
|
static func show(window: NSWindow, _ type: DataNavigationViewButtonActionType = .Batch, _ logType: KMRegisterLogType = .login) -> KMAccountInfoWindowController {
|
|
if KMAccountInfoWindowController.isSampleController() {
|
|
if KMAccountInfoWindowController.isSampleController() {
|
|
- let controller: KMAccountInfoWindowController = KMAccountInfoWindowController.fetchSampleController()
|
|
|
|
- controller.inputType = type
|
|
|
|
- window.beginSheet(controller.window!)
|
|
|
|
- return controller
|
|
|
|
|
|
+ return accountInfoController ?? KMAccountInfoWindowController()
|
|
} else {
|
|
} else {
|
|
let controller: KMAccountInfoWindowController = KMAccountInfoWindowController.init(windowNibName: "KMAccountInfoWindowController")
|
|
let controller: KMAccountInfoWindowController = KMAccountInfoWindowController.init(windowNibName: "KMAccountInfoWindowController")
|
|
controller.inputType = type
|
|
controller.inputType = type
|