Connect rehighlight tags in editor to index signal on tags change (#1916)

This commit is contained in:
Veronica Berglyd Olsen
2024-06-16 21:13:50 +02:00
parent f548927b74
commit 683e81c57b
3 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -215,6 +215,7 @@ class GuiMain(QMainWindow):
SHARED.spellLanguageChanged.connect(self.mainStatus.setLanguage)
SHARED.focusModeChanged.connect(self._focusModeChanged)
SHARED.indexChangedTags.connect(self.docViewerPanel.updateChangedTags)
SHARED.indexChangedTags.connect(self.docEditor.updateChangedTags)
SHARED.indexScannedText.connect(self.docViewerPanel.projectItemChanged)
SHARED.indexScannedText.connect(self.projView.updateItemValues)
SHARED.indexScannedText.connect(self.itemDetails.updateViewBox)
@@ -745,7 +746,6 @@ class GuiMain(QMainWindow):
self.mainStatus.setStatusMessage(
self.tr("Indexing completed in {0} ms").format(f"{(tEnd - tStart)*1000.0:.1f}")
)
self.docEditor.updateTagHighLighting()
self._updateStatusWordCount()
QApplication.restoreOverrideCursor()