소스 검색

【浏览器】开启式出现两个Window修复

lizhe 1 년 전
부모
커밋
41a5853fdc
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      PDF Office/PDF Master/Class/Document/KMMainDocument.swift

+ 1 - 1
PDF Office/PDF Master/Class/Document/KMMainDocument.swift

@@ -128,7 +128,7 @@ typealias KMMainDocumentCloudUploadHanddler = (@escaping(Bool, String)->()) -> (
             currentWindowController = browser.windowController as? KMBrowserWindowController
         }
         
-        if currentWindowController?.browser == nil {
+        if currentWindowController?.browser == nil && (self.fileURL != nil) {
             let browser: KMBrowser = KMBrowser.init()
             browser.windowController = KMBrowserWindowController.init(browser: browser)
             browser.addHomeTabContents()