Ver Fonte

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

tangchao há 11 meses atrás
pai
commit
15b87ded5e
1 ficheiros alterados com 3 adições e 0 exclusões
  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