Allow file items to save expanded status

This commit is contained in:
Veronica Berglyd Olsen
2022-04-23 15:38:53 +02:00
parent 31fac7bf45
commit 64da2793ac
13 changed files with 86 additions and 86 deletions
+1 -2
View File
@@ -160,13 +160,12 @@ class NWItem():
itemAttrib["layout"] = str(self._layout.name)
metaAttrib = {}
metaAttrib["expanded"] = str(self._expanded)
if self._type == nwItemType.FILE:
metaAttrib["charCount"] = str(self._charCount)
metaAttrib["wordCount"] = str(self._wordCount)
metaAttrib["paraCount"] = str(self._paraCount)
metaAttrib["cursorPos"] = str(self._cursorPos)
else:
metaAttrib["expanded"] = str(self._expanded)
nameAttrib = {}
nameAttrib["status"] = str(self._status)