Fixed: fixed P2P bugs and and implement new UI

This commit is contained in:
vorotamoroz committed 2026-05-15 10:18:53 +01:00
1 parent 91c9746886
commit d5e2f57781
15 files changed
+1388 -31

No files matched your search

@@ -38,6 +38,20 @@ export class ObsidianAPIService extends InjectableAPIService<ObsidianServiceCont
}
}
override async showWindowOnRight(viewType: string): Promise<void> {
const rightLeaf = this.app.workspace.getRightLeaf(false);
if (rightLeaf) {
await rightLeaf.setViewState({
type: viewType,
active: false,
});
await this.app.workspace.revealLeaf(rightLeaf);
return;
}
await this.showWindow(viewType);
}
private get app() {
return this.context.app;
}