Move the thread pool to the shared object instance

This commit is contained in:
Veronica Berglyd Olsen
2023-09-10 17:46:35 +02:00
parent 16e2e0cc83
commit e210bca319
5 changed files with 32 additions and 9 deletions
+2 -2
View File
@@ -1139,7 +1139,7 @@ class GuiDocEditor(QPlainTextEdit):
if time() - self._lastEdit < 5 * self.wcInterval:
logger.debug("Running word counter")
self.mainGui.threadPool.start(self.wCounterDoc)
SHARED.runInThreadPool(self.wCounterDoc)
return
@@ -1192,7 +1192,7 @@ class GuiDocEditor(QPlainTextEdit):
logger.debug("Selection word counter is busy")
return
self.mainGui.threadPool.start(self.wCounterSel)
SHARED.runInThreadPool(self.wCounterSel)
return