From ec6036084eb6b652051980bc8027f46fae15e0e0 Mon Sep 17 00:00:00 2001 From: Andraxion Date: Sat, 27 Jun 2026 05:05:44 -0400 Subject: [PATCH] Open hidden studio tabs on first click --- src/worldshaperStudio/toolWindowController.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/worldshaperStudio/toolWindowController.ts b/src/worldshaperStudio/toolWindowController.ts index 927ded9..28ccc8d 100644 --- a/src/worldshaperStudio/toolWindowController.ts +++ b/src/worldshaperStudio/toolWindowController.ts @@ -561,7 +561,20 @@ export function createToolWindowController(scope) { if (!entry) { return; } + const wasVisible = entry.visible === true; + const wasActive = scope.activeSidebarTab === normalizedKey; setActiveTool(normalizedKey); + if (!wasVisible) { + entry.visible = true; + syncPanels(); + persistPanelState(); + return; + } + if (!wasActive) { + syncPanels(); + persistPanelState(); + return; + } toggleEntryVisibility(entry); }