Skip to content

Commit

Permalink
Merge pull request #420 from kahst/change-language-fix
Browse files Browse the repository at this point in the history
language changes always when checkbox is changed.
  • Loading branch information
max-mauermann authored Aug 26, 2024
2 parents 34359d7 + ccbf1c2 commit 56b50dd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -1976,11 +1976,7 @@ def build_settings():
)

def on_language_change(value):
if value and value != loc.TARGET_LANGUAGE:
loc.set_language(value)
return gr.Button(visible=True)

return gr.Button(visible=False)
loc.set_language(value)

def on_tab_select(value: gr.SelectData):
if value.selected and os.path.exists(cfg.ERROR_LOG_FILE):
Expand Down

0 comments on commit 56b50dd

Please sign in to comment.