fix: persist workspace state after toggle

This commit is contained in:
windingwind 2024-07-21 18:07:16 +08:00
parent c6bc4171a3
commit 05e022964e

View File

@ -169,6 +169,7 @@ export class Workspace extends PluginCEBase {
}
this._leftSplitter.setAttribute("state", open ? "open" : "collapsed");
this._persistState();
}
toggleContext(open?: boolean) {
@ -177,6 +178,7 @@ export class Workspace extends PluginCEBase {
}
this._rightSplitter.setAttribute("state", open ? "open" : "collapsed");
this._persistState();
}
async _initEditor() {