Fix initial setting of project word count

This commit is contained in:
Veronica K. B. Olsen
2021-01-09 20:07:09 +01:00
parent 7c643ea698
commit a6cbdfc559
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -606,10 +606,13 @@ class NWProject():
self.theParent.setStatus("Opened Project: %s" % self.projName)
self._scanProjectFolder()
self.setProjectChanged(False)
self.currWCount = self.lastWCount
self.projOpened = time()
self.projAltered = False
self._writeLockFile()
self.setProjectChanged(False)
return True
+1
View File
@@ -428,6 +428,7 @@ class GuiMain(QMainWindow):
self.docEditor.setSpellCheck(self.theProject.spellCheck)
self.mainMenu.setAutoOutline(self.theProject.autoOutline)
self.statusBar.setRefTime(self.theProject.projOpened)
self.statusBar.setStats(self.theProject.currWCount, 0)
# Restore previously open documents, if any
if self.theProject.lastEdited is not None: