Move idle time records to the shared class

This commit is contained in:
Veronica Berglyd Olsen
2023-08-20 21:33:04 +02:00
parent 777b1a15fd
commit 0b4cfd0037
5 changed files with 44 additions and 29 deletions
+4 -2
View File
@@ -229,8 +229,10 @@ class NWTree:
oParent = self.findRoot(oClass)
if oParent is None: # Otherwise, add to the Novel root
oParent = self.findRoot(nwItemClass.NOVEL)
if oParent is None: # If not, give up
continue
if oParent is None: # If not, create a new novel folder
oParent = self.create(prefix, None, nwItemType.ROOT, nwItemClass.NOVEL)
assert oParent is not None # Otherwise there's an issue with self.create()
# Create a new item
newItem = NWItem(self._project, cHandle)