Improve doc changed checking and some code cleanup

This commit is contained in:
Veronica K. B. Olsen
2021-01-09 20:26:05 +01:00
parent e2d5534959
commit 73cd7f7513
2 changed files with 10 additions and 10 deletions
+2 -7
View File
@@ -179,13 +179,8 @@ class GuiMainStatus(QStatusBar):
def setStats(self, pWC, sWC):
"""Set the current project statistics.
"""
self.statsText.setToolTip(
"Project word count (session change)"
)
self.statsText.setText(
f"Words: {pWC:n} ({sWC:+n})"
)
self.statsText.setText(f"Words: {pWC:n} ({sWC:+n})")
self.statsText.setToolTip("Project word count (session change)")
return
##