[Update] Main Window Sidebar: 翻訳機能を使わない時は、そもそも翻訳機能のボタンを表示しないように。
音声認識処理中などのボタンdisabled時、スイッチの色をもっと無効感がでるように変更。
This commit is contained in:
6
view.py
6
view.py
@@ -884,18 +884,24 @@ class View():
|
||||
self.openCtranslate2WeightTypeWidget()
|
||||
self.setTranslationSwitchStatus("normal", release_locked_state=True)
|
||||
vrct_gui.sls__box_translation_optionmenu_wrapper.grid()
|
||||
vrct_gui.compact_mode_translation_frame.grid()
|
||||
vrct_gui.translation_frame.grid()
|
||||
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.compact_mode_translation_frame.grid_remove()
|
||||
vrct_gui.translation_frame.grid_remove()
|
||||
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.compact_mode_translation_frame.grid()
|
||||
vrct_gui.translation_frame.grid()
|
||||
|
||||
vrct_gui.update()
|
||||
vrct_gui.config_window.lift()
|
||||
|
||||
Reference in New Issue
Block a user