From 9dd10f14a8d9a518398f77fb1f3d5e53dc6f8443 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Sat, 20 Jan 2024 13:30:28 +0900 Subject: [PATCH] =?UTF-8?q?[bugfix]=20Use=20translation=20feature=E3=82=AA?= =?UTF-8?q?=E3=83=B3=E6=99=82=E3=80=81weight=E5=88=87=E6=9B=BF=E6=99=82?= =?UTF-8?q?=E3=81=AA=E3=81=A9=E3=81=AB=E3=83=A1=E3=82=A4=E3=83=B3=E7=94=BB?= =?UTF-8?q?=E9=9D=A2=E9=BB=92=E3=81=84=E3=82=AB=E3=83=90=E3=83=BC=E3=81=8C?= =?UTF-8?q?=E5=89=8D=E3=81=AB=E5=87=BA=E3=81=A6=E3=81=8D=E3=81=A6=E3=80=81?= =?UTF-8?q?=E3=81=9D=E3=81=93=E3=81=9D=E3=81=93=E9=95=B7=E3=81=84=E6=99=82?= =?UTF-8?q?=E9=96=93=E3=81=A8=E3=81=A9=E3=81=BE=E3=81=A3=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=9F=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3=E3=80=82=E5=AE=8C?= =?UTF-8?q?=E5=85=A8=E3=81=A7=E3=81=AF=E3=81=AA=E3=81=84=E3=81=8C=E5=A6=A5?= =?UTF-8?q?=E5=8D=94=E6=A1=88=E3=81=A7=E3=81=99=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- view.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/view.py b/view.py index 02acb490..91497027 100644 --- a/view.py +++ b/view.py @@ -885,19 +885,21 @@ class View(): self.openCtranslate2WeightTypeWidget() self.setTranslationSwitchStatus("normal", release_locked_state=True) vrct_gui.sls__box_translation_optionmenu_wrapper.grid() - vrct_gui.config_window.after(200, vrct_gui.config_window.lift) + vrct_gui.update() elif state == "Disable": view.closeCtranslate2WeightTypeWidget() view.setTranslationSwitchStatus("disabled", to_lock_state=True) vrct_gui.sls__box_translation_optionmenu_wrapper.grid_remove() - vrct_gui.config_window.after(200, vrct_gui.config_window.lift) + vrct_gui.update() elif state == "Restart": view.setLatestCTranslate2WeightType() view.setTranslationSwitchStatus("disabled", to_lock_state=True) vrct_gui.sls__box_translation_optionmenu_wrapper.grid() - vrct_gui.config_window.after(200, vrct_gui.config_window.lift) + + vrct_gui.update() + vrct_gui.config_window.lift() # Open Webpage Functions