Handle novel model refresh scenarios

This commit is contained in:
Veronica Berglyd Olsen
2025-03-22 20:25:34 +01:00
parent edf765f91f
commit 9990ebf193
8 changed files with 62 additions and 8 deletions
+6
View File
@@ -293,6 +293,12 @@ class NWItem:
self._project.tree.refreshItems([self._handle])
return
def notifyNovelStructureChange(self) -> None:
"""Notify that the structure of a novel has changed."""
if self._root and self._class == nwItemClass.NOVEL:
self._project.tree.novelStructureChanged(self._root)
return
##
# Lookup Methods
##