Переглянути джерело

【主页】顶部头像双击问题修复

lizhe 1 рік тому
батько
коміт
aee470bbb8

+ 1 - 4
PDF Office/PDF Master/Class/KMLightMember/Controller/AccountInfo/KMAccountInfoWindowController.swift

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