Explorar o código

【fix】【注释】添加表格,会在注释列表有注释记录?(架上版本没有)

tangchao hai 9 meses
pai
achega
0a4433451f

+ 3 - 4
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController+Note.swift

@@ -807,10 +807,9 @@ extension KMLeftSideViewController {
                     }
                 }
                 for annotation in annos {
-                    //                    if annotation.isKind(of: KMTableAnnotation.self) {
-                    //                        annos.removeObject(annotation)
-                    //                    } else
-                    if annotation.annotationShouldDisplay() == false {
+                    if annotation.isKind(of: KMTableAnnotation.self) {
+                        annos.removeObject(annotation)
+                    } else if annotation.annotationShouldDisplay() == false {
                         annos.removeObject(annotation)
                     } else if annotation.isKind(of: CPDFLinkAnnotation.self) {
                         annos.removeObject(annotation)

+ 4 - 4
PDF Office/PDF Master/Class/PDFWindowController/ViewController/KMMainViewController.swift

@@ -311,10 +311,10 @@ import Cocoa
                 }
             } else {
                 self.passwordWindow = nil
-            }
-            
-            if self.model.needConvertNotes && self.tabViewIsDragging() == false {
-                self.showConvertNotesProgress()
+                
+                if self.model.needConvertNotes && self.tabViewIsDragging() == false {
+                    self.showConvertNotesProgress()
+                }
             }
         }
     }