From 7ca865ee29ca73373349e3a82f783877e4d51ae8 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Sun, 3 May 2026 10:53:39 +0200 Subject: fix: stop double stopped emit, restore race, worker leak, encapsulation, git view init --- ui/translation_view.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ui/translation_view.py') 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() -- cgit v1.2.3