Open hidden studio tabs on first click

This commit is contained in:
Andraxion 2026-06-27 05:05:44 -04:00
parent 091c0102da
commit ec6036084e

View file

@ -561,7 +561,20 @@ export function createToolWindowController(scope) {
if (!entry) { if (!entry) {
return; return;
} }
const wasVisible = entry.visible === true;
const wasActive = scope.activeSidebarTab === normalizedKey;
setActiveTool(normalizedKey); setActiveTool(normalizedKey);
if (!wasVisible) {
entry.visible = true;
syncPanels();
persistPanelState();
return;
}
if (!wasActive) {
syncPanels();
persistPanelState();
return;
}
toggleEntryVisibility(entry); toggleEntryVisibility(entry);
} }