[bugfix] Config Window: 再起動ボタン表示のラベルが表示されない場合があるバグ修正。

weight type変更時のみ発生していた。after関数を使い、表示を若干遅らせることで対処。
This commit is contained in:
Sakamoto Shiina
2024-01-21 14:49:04 +09:00
parent 9208bb3ac3
commit 59079def6a

View File

@@ -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()