From 7e64e31dfe7d4d30b68991ace7fae258000f27e7 Mon Sep 17 00:00:00 2001 From: SiriusXT <1160925501@qq.com> Date: Sat, 17 May 2025 23:51:37 +0800 Subject: [PATCH] Fix: The button for toggling the left pane visibility in the launcher was initially not visible on startup --- apps/client/src/widgets/buttons/left_pane_toggle.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/client/src/widgets/buttons/left_pane_toggle.ts b/apps/client/src/widgets/buttons/left_pane_toggle.ts index 88528add5..80725a3e8 100644 --- a/apps/client/src/widgets/buttons/left_pane_toggle.ts +++ b/apps/client/src/widgets/buttons/left_pane_toggle.ts @@ -32,10 +32,8 @@ export default class LeftPaneToggleWidget extends CommandButtonWidget { } refreshIcon() { - if (document.hasFocus() || this.currentLeftPaneVisible === true) { - super.refreshIcon(); - splitService.setupLeftPaneResizer(this.currentLeftPaneVisible); - } + super.refreshIcon(); + splitService.setupLeftPaneResizer(this.currentLeftPaneVisible); } entitiesReloadedEvent({ loadResults }: EventData<"entitiesReloaded">) {