Преглед на файлове

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

lizhe преди 1 година
родител
ревизия
aee470bbb8
променени са 1 файла, в които са добавени 1 реда и са изтрити 4 реда
  1. 1 4
      PDF Office/PDF Master/Class/KMLightMember/Controller/AccountInfo/KMAccountInfoWindowController.swift

+ 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