From 11ba04379d820ae1646602beb04748887d28acb8 Mon Sep 17 00:00:00 2001 From: misyaguziya Date: Thu, 19 Sep 2024 10:32:11 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8D=EF=B8=8F[Update]=20Model:=20?= =?UTF-8?q?=E7=BF=BB=E8=A8=B3=E8=A8=80=E8=AA=9E=E3=81=AEset=E9=96=A2?= =?UTF-8?q?=E6=95=B0=E3=81=AE=E5=BC=95=E6=95=B0=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src-python/webui_controller.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src-python/webui_controller.py b/src-python/webui_controller.py index b78b92e5..b4dd2eca 100644 --- a/src-python/webui_controller.py +++ b/src-python/webui_controller.py @@ -466,17 +466,13 @@ def setTargetTranslateEngine(select): def setYourLanguageAndCountry(select:dict, *args, **kwargs) -> dict: printLog("setYourLanguageAndCountry", select) - languages = config.SELECTED_TAB_YOUR_LANGUAGES - languages[config.SELECTED_TAB_NO] = select - config.SELECTED_TAB_YOUR_LANGUAGES = languages + config.SELECTED_TAB_YOUR_LANGUAGES = select updateTranslationEngineAndEngineList() return {"status":200, "result":config.SELECTED_TAB_YOUR_LANGUAGES} def setTargetLanguageAndCountry(select:dict, *args, **kwargs) -> dict: printLog("setTargetLanguageAndCountry", select) - languages = config.SELECTED_TAB_TARGET_LANGUAGES - languages[config.SELECTED_TAB_NO] = select - config.SELECTED_TAB_TARGET_LANGUAGES = languages + config.SELECTED_TAB_TARGET_LANGUAGES = select updateTranslationEngineAndEngineList() return {"status":200, "result":config.SELECTED_TAB_TARGET_LANGUAGES}