Skip to content

Commit

Permalink
Merge pull request #133 from kishikawakatsumi/sample
Browse files Browse the repository at this point in the history
Performance tuning
  • Loading branch information
kishikawakatsumi authored Sep 17, 2024
2 parents dd60326 + 1debd23 commit a6151cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ class DirectoryStructure {
tree.nodes = rootNodes + childNodes

viewTree = viewTree(tree)

useCache = true
outlineView.reloadData()
useCache = false
}

func filter(_ text: String) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ class FilesViewController: NSViewController {
tabGroupObserving = tabGroup.observe(\.selectedWindow) { (tabGroup, change) in
if window == tabGroup.selectedWindow {
dirTree.update(outlineView)
outlineView.reloadData()
}
}
}
Expand Down

0 comments on commit a6151cf

Please sign in to comment.