Merge branch 'main' into minor_fixes

This commit is contained in:
Veronica Berglyd Olsen
2025-01-09 22:22:39 +01:00
committed by GitHub
+4 -3
View File
@@ -1251,10 +1251,11 @@ class GuiDocEditor(QPlainTextEdit):
self._nwItem.setCharCount(cCount) self._nwItem.setCharCount(cCount)
self._nwItem.setWordCount(wCount) self._nwItem.setWordCount(wCount)
self._nwItem.setParaCount(pCount) self._nwItem.setParaCount(pCount)
if needsRefresh and not self.textCursor().hasSelection(): if needsRefresh:
# Selection counter should take precedence (#2155)
self._nwItem.notifyToRefresh() self._nwItem.notifyToRefresh()
self.docFooter.updateWordCount(wCount, False) if not self.textCursor().hasSelection():
# Selection counter should take precedence (#2155)
self.docFooter.updateWordCount(wCount, False)
return return
@pyqtSlot() @pyqtSlot()