|
@@ -79,6 +79,8 @@ class KMLeftSideViewController: KMSideViewController {
|
|
|
@IBOutlet weak var emptySearchBox: NSBox!
|
|
|
@IBOutlet weak var emptySearchLabel: NSTextField!
|
|
|
|
|
|
+ var stopRepeatLoad: Bool = false
|
|
|
+
|
|
|
lazy var leftSideEmptyVC: KMLeftSideEmptyFileViewController = {
|
|
|
let vc = KMLeftSideEmptyFileViewController(nibName: "KMLeftSideEmptyFileViewController", bundle: nil)
|
|
|
vc.view.wantsLayer = true
|
|
@@ -1194,7 +1196,12 @@ extension KMLeftSideViewController: NSTableViewDelegate, NSTableViewDataSource {
|
|
|
}
|
|
|
|
|
|
func tableViewSelectionDidChange(_ notification: Notification) {
|
|
|
- self.delegate?.controller?(controller: self, listViewSelectionDidChange: notification.object, info: nil)
|
|
|
+ if self.stopRepeatLoad == true {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ self.delegate?.controller?(controller: self, listViewSelectionDidChange: notification.object, info: nil)
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
if self.findTableView.isEqual(to: notification.object) {
|
|
|
// [self updateFindResultHighlightsForDirection:NSDirectSelection];
|