From ccbf1c2ed2d1a765de37e8fc4ab2679c6b837408 Mon Sep 17 00:00:00 2001 From: Max Mauermann Date: Mon, 26 Aug 2024 13:29:35 +0200 Subject: [PATCH] language changes always when checkbox is changed. removed the button output --- gui.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gui.py b/gui.py index ebd4659b..11130145 100644 --- a/gui.py +++ b/gui.py @@ -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):