diff --git a/src/main.ts b/src/main.ts index e617420..9c76b76 100644 --- a/src/main.ts +++ b/src/main.ts @@ -28,7 +28,10 @@ export default class AppleStyleNotesPlugin extends Plugin { callback: async () => await this.openFileTreeLeaf(true), }); - } + this.app.workspace.onLayoutReady(async () => { + await this.openFileTreeLeaf(true); + }); + } onunload() {