Skip to content

Commit

Permalink
fix: close sidebar close all
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Jul 26, 2024
1 parent 3dfb4e0 commit 6bc0940
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plugins/oeyoews/neotw-menubar/tiddlers/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,14 @@ const app = () => {
menubarNav.value.dispatchEvent({
type: 'tm-close-all-tiddlers',
});

// 清空时, 关闭侧边栏
$tw.wiki.setText(
`$:/state/notebook-sidebar`,
'text',
null,
'no',
);
},
},
// need neotw-cmp plugins
Expand Down

0 comments on commit 6bc0940

Please sign in to comment.