瀏覽代碼

【fix】【注释列表】筛选时,有一个type不显示,点击clear后会显示

tangchao 6 月之前
父節點
當前提交
d14bc0d4c2

+ 6 - 2
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/Annotation/Controller/KMNoteOutlineFilterViewController.swift

@@ -319,10 +319,14 @@ extension KMNoteOutlineFilterViewController {
     private func _addNoteTypeWith(_ type: String) {
         if let cnt = self._typeMutableArray?.count, cnt > 0 {
             if self._typeMutableArray?.contains(type) == false {
-                self._typeMutableArray?.add(type as Any)
+                if type.isEmpty == false && type != "Image" {
+                    self._typeMutableArray?.add(type as Any)
+                }
             }
         } else {
-            self._typeMutableArray?.add(type as Any)
+            if type.isEmpty == false && type != "Image" {
+                self._typeMutableArray?.add(type as Any)
+            }
         }
     }