|
@@ -242,9 +242,11 @@ class KMPDFViewPanelSetViewController: NSViewController {
|
|
}
|
|
}
|
|
|
|
|
|
@objc func displayModeChangedNotification(_ notification: Notification) -> Void {
|
|
@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()
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|