From e3cfde31726ce2f8d75e733006e850c7f298a27f Mon Sep 17 00:00:00 2001 From: machinewrapped Date: Sun, 2 Jun 2024 17:54:00 +0200 Subject: [PATCH] Don't send full update after scene translation It's already updated on the fly after each batch, so there shouldn't be anything more to do. --- GUI/Commands/TranslateSceneCommand.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/GUI/Commands/TranslateSceneCommand.py b/GUI/Commands/TranslateSceneCommand.py index 46b581e..2038479 100644 --- a/GUI/Commands/TranslateSceneCommand.py +++ b/GUI/Commands/TranslateSceneCommand.py @@ -67,17 +67,6 @@ def execute(self): 'summary' : scene.summary }) - for batch in scene.batches: - if batch.translated: - if not self.batch_numbers or batch.number in self.batch_numbers: - model_update.batches.update((scene.number, batch.number), { - 'summary' : batch.summary, - 'context' : batch.context, - 'errors' : batch.errors, - 'translation': batch.translation, - 'lines' : { line.number : { 'translation' : line.text } for line in batch.translated } - }) - return True def on_abort(self):