Connect main progress bar to potential bulky operations in the project tree

This commit is contained in:
Veronica Berglyd Olsen
2025-07-17 18:06:02 +02:00
parent 1223e6da84
commit e77b71bbbc
4 changed files with 30 additions and 10 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ class Index:
def rebuild(self) -> None:
"""Rebuild the entire index from scratch."""
self.clear()
SHARED.initMainProgress(len(self._project.tree) - 1)
SHARED.initMainProgress(len(self._project.tree))
for nwItem in self._project.tree:
if nwItem.isFileType():
text = self._project.storage.getDocumentText(nwItem.itemHandle)