Explorar o código

:art: https://github.com/siyuan-note/siyuan/issues/12029#issuecomment-2327872613

Vanessa hai 10 meses
pai
achega
da7aad062d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/src/layout/dock/Outline.ts

+ 1 - 1
app/src/layout/dock/Outline.ts

@@ -160,10 +160,10 @@ export class Outline extends Model {
             } else {
             } else {
                 iconElement.classList.add("block__icon--active");
                 iconElement.classList.add("block__icon--active");
                 window.siyuan.storage[Constants.LOCAL_OUTLINE].keepExpand = true;
                 window.siyuan.storage[Constants.LOCAL_OUTLINE].keepExpand = true;
+                this.tree.expandAll();
             }
             }
 
 
             setStorageVal(Constants.LOCAL_OUTLINE, window.siyuan.storage[Constants.LOCAL_OUTLINE]);
             setStorageVal(Constants.LOCAL_OUTLINE, window.siyuan.storage[Constants.LOCAL_OUTLINE]);
-            this.tree.expandAll();
         });
         });
         options.tab.panelElement.addEventListener("click", (event: MouseEvent & { target: HTMLElement }) => {
         options.tab.panelElement.addEventListener("click", (event: MouseEvent & { target: HTMLElement }) => {
             if (this.type === "local") {
             if (this.type === "local") {