소스 검색

Merge branch 'develop' of git.kdan.cc:Mac_PDF/PDF_Office into develop

tangchao 1 년 전
부모
커밋
794a46e83c
1개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 3
      PDF Office/PDF Office/Class/PDFWindowController/Side/LeftSide/ViewPanel/KMPDFViewPanelSetViewController.swift

+ 5 - 3
PDF Office/PDF Office/Class/PDFWindowController/Side/LeftSide/ViewPanel/KMPDFViewPanelSetViewController.swift

@@ -242,9 +242,11 @@ class KMPDFViewPanelSetViewController: NSViewController {
     }
     
     @objc func displayModeChangedNotification(_ notification: Notification) -> Void {
-        let pdfview = notification.object as! CPDFListView
-        if(pdfview.document == self.listView?.document) {
-            self.reloadListViewModel()
+        if notification.object is CPDFListView {
+            let pdfview = notification.object as! CPDFListView
+            if(pdfview.document == self.listView?.document) {
+                self.reloadListViewModel()
+            }
         }
     }
 }