mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -914,6 +914,7 @@ data-type="navigation-root" data-path="/">
|
||||
let html = "";
|
||||
let closeHtml = "";
|
||||
let closeCounter = 0;
|
||||
const scrollTop = this.element.scrollTop;
|
||||
window.siyuan.notebooks.forEach((item) => {
|
||||
if (item.closed) {
|
||||
closeCounter++;
|
||||
@@ -931,10 +932,11 @@ data-type="navigation-root" data-path="/">
|
||||
} else {
|
||||
this.closeElement.classList.add("fn__none");
|
||||
}
|
||||
window.siyuan.storage[Constants.LOCAL_FILESPATHS].forEach((item: IFilesPath) => {
|
||||
item.openPaths.forEach((openPath) => {
|
||||
this.selectItem(item.notebookId, openPath, undefined, false, false);
|
||||
});
|
||||
window.siyuan.storage[Constants.LOCAL_FILESPATHS].forEach(async (item: IFilesPath) => {
|
||||
for (const openPath of item.openPaths) {
|
||||
await this.selectItem(item.notebookId, openPath, undefined, false, false);
|
||||
}
|
||||
this.element.scrollTop = scrollTop;
|
||||
});
|
||||
this.refreshPublishAccessSwitch();
|
||||
if (!init) {
|
||||
|
||||
Reference in New Issue
Block a user