Fix slight bug in expansion code,

a non-expanded node was causing all parent levels to not expand.
This commit is contained in:
Kelly McDonald 2021-04-20 11:11:11 -04:00
parent e2197ddab9
commit 19e94da6b6
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ def ensure_exists(output,categories,expanded):
if item.level == currentitem:
found = True
item.filecount = item.filecount + 1
item.expanded = expanded
item.expanded = expanded | item.expanded
ensure_exists(item.children,categories[1:],expanded)
if not found:
newlevel = DocumentDirectory(level=currentitem)