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

pull/14/head
yann300 4 years ago committed by LianaHus
parent 84373ef783
commit 56643b83ad
  1. 2
      src/app/ui/TreeView.js

@ -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) {

Loading…
Cancel
Save