fix: context pane update bug

fix: #939
This commit is contained in:
windingwind 2024-04-10 20:52:50 +08:00
parent adcb8478fa
commit c7bc8a8d70

View File

@ -43,6 +43,8 @@ export function onTabSelect(tabType: string) {
if (tabType === TAB_TYPE) {
contextPaneOpen = splitter.getAttribute("state") != "collapsed";
splitter.setAttribute("state", "collapsed");
} else if (tabType === "library") {
return;
} else if (typeof contextPaneOpen !== "undefined") {
splitter.setAttribute("state", contextPaneOpen ? "open" : "collapsed");
contextPaneOpen = undefined;