- Application LifeCycle has now started in Main, not ServiceHub.

This commit is contained in:
vorotamoroz
2026-02-14 15:21:00 +09:00
parent fb59c4a723
commit 6e9ac6a9f9
10 changed files with 34 additions and 26 deletions
+6 -1
View File
@@ -205,8 +205,13 @@ export default class ObsidianLiveSyncPlugin
syncStatus: "CLOSED" as DatabaseConnectingStatus,
});
private async _startUp() {
await this.services.appLifecycle.onLoad();
const onReady = this.services.appLifecycle.onReady.bind(this.services.appLifecycle);
this.app.workspace.onLayoutReady(onReady);
}
onload() {
void this.services.appLifecycle.onLoad();
void this._startUp();
}
async saveSettings() {
await this.services.setting.saveSettingData();