Skip to content

Build your personal knowledge base with Trilium Notes

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

SiriusXT7e64e31dfe7d
diff --git a/apps/client/src/widgets/buttons/left_pane_toggle.ts b/apps/client/src/widgets/buttons/left_pane_toggle.ts
index 88528add53..80725a3e81 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">) {