Skip to content

Commit

Permalink
window: Fix usage of history in translation suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaelmardojai committed Dec 13, 2023
1 parent 47d66f1 commit 1dfae3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dialect/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,12 +806,12 @@ def on_fail(error: ProviderError):
)

src, dest = self.provider['trans'].denormalize_lang(
self.provider['trans'].history[self.current_history]['Languages'][0],
self.provider['trans'].history[self.current_history]['Languages'][1]
self.provider['trans'].history[self.current_history].original[1],
self.provider['trans'].history[self.current_history].original[2]
)

self.provider['trans'].suggest(
self.provider['trans'].history[self.current_history]['Text'][0],
self.provider['trans'].history[self.current_history].original[0],
src,
dest,
dest_text,
Expand Down

0 comments on commit 1dfae3b

Please sign in to comment.