[bugfix] Main Window: サイドバーコンパクトモードにして、VRCTを終了し、次回起動時にコンパクトモードでのroot geometry計算になるためWindowが小さくなるのを修正。

This commit is contained in:
Sakamoto Shiina
2023-10-13 14:56:23 +09:00
parent 1380d66da1
commit 1b5515cc95
2 changed files with 2 additions and 5 deletions

View File

@@ -446,11 +446,6 @@ class View():
self.view_variable.CALLBACK_SET_OSC_PORT = config_window_registers.get("callback_set_osc_port", None)
# The initial processing after registration.
if config.IS_MAIN_WINDOW_SIDEBAR_COMPACT_MODE is True:
vrct_gui._enableMainWindowSidebarCompactMode()
if config.IS_CONFIG_WINDOW_COMPACT_MODE is True:
self.enableConfigWindowCompactMode()
vrct_gui.config_window.setting_box_compact_mode_switch_box.select()

View File

@@ -46,6 +46,8 @@ class VRCT_GUI(CTk):
self.attributes("-alpha", 0)
self.deiconify()
setGeometryToCenterOfScreen(root_widget=self)
if self._view_variable.IS_MAIN_WINDOW_SIDEBAR_COMPACT_MODE is True:
self._enableMainWindowSidebarCompactMode()
fadeInAnimation(self, steps=5, interval=0.008)
def _createGUI(self, settings, view_variable):