Skip to content

Commit

Permalink
Don't send full update after scene translation
Browse files Browse the repository at this point in the history
It's already updated on the fly after each batch, so there shouldn't be anything more to do.
  • Loading branch information
machinewrapped committed Jun 2, 2024
1 parent 1f37307 commit e3cfde3
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions GUI/Commands/TranslateSceneCommand.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit e3cfde3

Please sign in to comment.