Fix slight bug in expansion code,
a non-expanded node was causing all parent levels to not expand.
This commit is contained in:
parent
e2197ddab9
commit
19e94da6b6
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue