Remove max folder depth restriction, and simplify adding folders and files in the tree

This commit is contained in:
Veronica Berglyd Olsen
2022-04-17 14:44:11 +02:00
parent ebee9ff791
commit 4cfbbf4c68
14 changed files with 87 additions and 132 deletions
+3 -1
View File
@@ -308,7 +308,9 @@ class NWItem():
"""Set the default values based on the item's class and the
project settings.
"""
self.setClass(itemClass)
if self._parent is not None:
# Only update for child items
self.setClass(itemClass)
if self._class in nwLists.CLS_NOVEL:
self._layout = nwItemLayout.DOCUMENT