[bugfix] Config Window: 再起動ボタン表示のラベルが表示されない場合があるバグ修正。
weight type変更時のみ発生していた。after関数を使い、表示を若干遅らせることで対処。
This commit is contained in:
3
view.py
3
view.py
@@ -1013,7 +1013,8 @@ class View():
|
||||
|
||||
def _showRestartButton(self, locale:Union[None,str]=None):
|
||||
self.view_variable.VAR_CONFIG_WINDOW_RESTART_BUTTON_LABEL.set(i18n.t("config_window.restart_message", locale=locale))
|
||||
vrct_gui.config_window.restart_button_container.grid()
|
||||
# This .after() func is for fixing bug that it can't be shown the label widget after changing the weight type.
|
||||
vrct_gui.config_window.after(100, vrct_gui.config_window.restart_button_container.grid)
|
||||
def _hideRestartButton(self):
|
||||
vrct_gui.config_window.restart_button_container.grid_remove()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user