🐛[bugfix] Controller : リスタートボタンの表示タイミングを修正

This commit is contained in:
misyaguziya
2024-01-22 01:45:18 +09:00
parent 59079def6a
commit 6ed71f1a4a
2 changed files with 5 additions and 10 deletions

View File

@@ -1013,8 +1013,7 @@ 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))
# 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)
vrct_gui.config_window.restart_button_container.grid()
def _hideRestartButton(self):
vrct_gui.config_window.restart_button_container.grid_remove()