Open hidden studio tabs on first click
This commit is contained in:
parent
091c0102da
commit
ec6036084e
1 changed files with 13 additions and 0 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue