[bugfix] Use translation featureオン時、weight切替時などにメイン画面黒いカバーが前に出てきて、そこそこ長い時間とどまっていたのを修正。完全ではないが妥協案です。
This commit is contained in:
8
view.py
8
view.py
@@ -885,19 +885,21 @@ class View():
|
|||||||
self.openCtranslate2WeightTypeWidget()
|
self.openCtranslate2WeightTypeWidget()
|
||||||
self.setTranslationSwitchStatus("normal", release_locked_state=True)
|
self.setTranslationSwitchStatus("normal", release_locked_state=True)
|
||||||
vrct_gui.sls__box_translation_optionmenu_wrapper.grid()
|
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":
|
elif state == "Disable":
|
||||||
view.closeCtranslate2WeightTypeWidget()
|
view.closeCtranslate2WeightTypeWidget()
|
||||||
view.setTranslationSwitchStatus("disabled", to_lock_state=True)
|
view.setTranslationSwitchStatus("disabled", to_lock_state=True)
|
||||||
vrct_gui.sls__box_translation_optionmenu_wrapper.grid_remove()
|
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":
|
elif state == "Restart":
|
||||||
view.setLatestCTranslate2WeightType()
|
view.setLatestCTranslate2WeightType()
|
||||||
view.setTranslationSwitchStatus("disabled", to_lock_state=True)
|
view.setTranslationSwitchStatus("disabled", to_lock_state=True)
|
||||||
vrct_gui.sls__box_translation_optionmenu_wrapper.grid()
|
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
|
# Open Webpage Functions
|
||||||
|
|||||||
Reference in New Issue
Block a user