소스 검색

Merge branch 'develop_PDFReaderProNew' of git.kdan.cc:Mac_PDF/PDF_Office into develop_PDFReaderProNew

tangchao 11 달 전
부모
커밋
15b87ded5e
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      PDF Office/PDF Master/AppDelegate.swift

+ 3 - 0
PDF Office/PDF Master/AppDelegate.swift

@@ -780,6 +780,9 @@ extension AppDelegate : NSMenuDelegate,NSMenuItemValidation {
         }
         if action == #selector(closeDocument) {
             guard let _windowC = NSApp.mainWindow?.windowController as? KMBrowserWindowController else {
+                if NSApp.mainWindow?.windowController != nil {
+                    return true
+                }
                 return false
             }
             let isNewTab = _windowC.browser?.activeTabContents()?.isNewTab ?? false