瀏覽代碼

【综合】创建空白文档,不显示注释转换进度窗口

tangchao 9 月之前
父節點
當前提交
49d6aefb35

+ 5 - 0
PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController+UI.swift

@@ -148,6 +148,11 @@ extension KMMainViewController {
             return
         }
         
+        let isNewCreated = (self.myDocument as? KMMainDocument)?.isNewCreated ?? false
+        if isNewCreated {
+            return
+        }
+        
         self.model.needConvertNotes = false
         Task { @MainActor in
             self.convertNotesUsingPDFDocument(pdfDocument)