summaryrefslogtreecommitdiffstats
path: root/ui/translation_view.py
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-05-03 10:53:39 +0200
committerDanilo M. <danix@danix.xyz>2026-05-03 10:53:39 +0200
commit7ca865ee29ca73373349e3a82f783877e4d51ae8 (patch)
treea449b840bed27a071e1003b75cb070b92b976f05 /ui/translation_view.py
parent1f7edea0ec0be3ec0e464c2829e4aec0886e28d3 (diff)
downloadpublisher-7ca865ee29ca73373349e3a82f783877e4d51ae8.tar.gz
publisher-7ca865ee29ca73373349e3a82f783877e4d51ae8.zip
fix: stop double stopped emit, restore race, worker leak, encapsulation, git view init
Diffstat (limited to 'ui/translation_view.py')
-rw-r--r--ui/translation_view.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/translation_view.py b/ui/translation_view.py
index 70e7ac2..6ce53dd 100644
--- a/ui/translation_view.py
+++ b/ui/translation_view.py
@@ -71,6 +71,10 @@ class TranslationView(QWidget):
layout.addWidget(self._action_bar)
def start_translation(self, article: Article):
+ if self._worker is not None:
+ self._worker.log_line.disconnect()
+ self._worker.finished.disconnect()
+ self._worker.error.disconnect()
self._article = article
self._log.clear()
self._preview.clear()