summaryrefslogtreecommitdiff
path: root/src/filetree.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-07-19 16:48:31 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2020-07-19 16:48:31 -0400
commit6c4e237d4b43db5c3f9dc01f8c0d3313f3bd2605 (patch)
tree7613427fe55d29abe21a11810ff355f84bdb31e7 /src/filetree.h
parentd32250597abf3139268ec3480af9a1fadcf0d18e (diff)
fixed crash because items were sorted while being expanded
when expanding all or updating the tree, only sort once at the end cache file types
Diffstat (limited to 'src/filetree.h')
-rw-r--r--src/filetree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/filetree.h b/src/filetree.h
index 2669e53b..8d71abb3 100644
--- a/src/filetree.h
+++ b/src/filetree.h
@@ -25,6 +25,9 @@ public:
bool fullyLoaded() const;
void ensureFullyLoaded();
+ void expandAll();
+ void collapseAll();
+
void open(FileTreeItem* item=nullptr);
void openHooked(FileTreeItem* item=nullptr);
void preview(FileTreeItem* item=nullptr);