Bladeren bron

【属性面板】- 图章模式下添加图章,再点击空白区域,显示图章列表

liaoxiaoyue 1 jaar geleden
bovenliggende
commit
8104ffc622

+ 8 - 3
PDF Office/PDF Office/Class/PDFWindowController/ViewController/KMMainViewController.swift

@@ -736,9 +736,14 @@ import Cocoa
                 self.rightSideViewController?.reloadDataWithPDFView(pdfView: pdfListView, isShow: true)
                 self.openRightPane()
             }
-        } else if (annotations.count == 0 && pdfListView.annotationType == .unkown){
-            self.rightSideViewController?.reloadDataWithPDFView(pdfView: pdfListView, isShow: false)
-            self.closeRightPane()
+        } else if (annotations.count == 0){
+            if  pdfListView.annotationType == .unkown {
+                self.rightSideViewController?.reloadDataWithPDFView(pdfView: pdfListView, isShow: false)
+                self.closeRightPane()
+            } else {
+                self.rightSideViewController?.reloadDataWithPDFView(pdfView: pdfListView, isShow: true)
+                self.openRightPane()
+            }
         }
     }