Przeglądaj źródła

【综合】大纲展开折叠刷新调整

niehaoyu 7 miesięcy temu
rodzic
commit
0d66c7e22f

+ 6 - 6
PDF Office/PDF Master/Class/PDFWindowController/Side/LeftSide/KMLeftSideViewController.swift

@@ -2019,15 +2019,15 @@ extension KMLeftSideViewController: NSOutlineViewDelegate, NSOutlineViewDataSour
     }
     
     func outlineViewItemDidExpand(_ notification: Notification) {
-        if self.tocOutlineView.isEqual(to: notification.object) {
-            self.updateOutlineSelection()
-        }
+//        if self.tocOutlineView.isEqual(to: notification.object) {
+//            self.updateOutlineSelection()
+//        }
     }
     
     func outlineViewItemDidCollapse(_ notification: Notification) {
-        if self.tocOutlineView.isEqual(to: notification.object) {
-            self.updateOutlineSelection()
-        }
+//        if self.tocOutlineView.isEqual(to: notification.object) {
+//            self.updateOutlineSelection()
+//        }
     }
     
     func outlineView(_ outlineView: NSOutlineView, validateDrop info: NSDraggingInfo, proposedItem item: Any?, proposedChildIndex index: Int) -> NSDragOperation {