- 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

View File

@@ -9,12 +9,6 @@ declare module "obsidian" {
}
// InjectableAppLifecycleService
export class ObsidianAppLifecycleService<T extends ObsidianServiceContext> extends AppLifecycleServiceBase<T> {
constructor(context: T) {
super(context);
// The main entry point when Obsidian's workspace is ready
const onReady = this.onReady;
this.context.app.workspace.onLayoutReady(onReady);
}
performRestart(): void {
void this.context.plugin.app.commands.executeCommandById("app:reload");
}