Fix: The button for toggling the left pane visibility in the launcher was initially not visible on startup

This commit is contained in:
SiriusXT 2025-05-17 23:51:37 +08:00
parent 3cf27026b2
commit 7e64e31dfe

View File

@ -32,10 +32,8 @@ export default class LeftPaneToggleWidget extends CommandButtonWidget {
} }
refreshIcon() { refreshIcon() {
if (document.hasFocus() || this.currentLeftPaneVisible === true) { super.refreshIcon();
super.refreshIcon(); splitService.setupLeftPaneResizer(this.currentLeftPaneVisible);
splitService.setupLeftPaneResizer(this.currentLeftPaneVisible);
}
} }
entitiesReloadedEvent({ loadResults }: EventData<"entitiesReloaded">) { entitiesReloadedEvent({ loadResults }: EventData<"entitiesReloaded">) {