feat: open file tree leaf when workspace layout ready

This commit is contained in:
Xu Quan 2025-01-09 23:14:00 +08:00
parent 8b6450f2d7
commit cd33ccc324

View file

@ -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() {