Commit 56643b83 authored by yann300's avatar yann300 Committed by LianaHus

remove subfolder from the list of expanded path if a folder is collapsed

parent 84373ef7
......@@ -104,7 +104,7 @@ class TreeView {
if (self.isExpanded(keyPath)) {
if (!self.expandPath.includes(keyPath)) self.expandPath.push(keyPath)
} else {
self.expandPath = self.expandPath.filter(path => path !== keyPath)
self.expandPath = self.expandPath.filter(path => !path.startsWith(keyPath))
}
}
label.oncontextmenu = function (event) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment