diff --git a/main.ts b/main.ts index a7935e1..d446038 100644 --- a/main.ts +++ b/main.ts @@ -272,7 +272,9 @@ export default class LoomPlugin extends Plugin { const loomPanes = this.app.workspace.getLeavesOfType("loom"); try { if (loomPanes.length === 0) - this.app.workspace.getRightLeaf(false).setViewState({ type: "loom" }); + this.app.workspace + .getRightLeaf(false) + .setViewState({ type: "loom" }); else if (focus) this.app.workspace.revealLeaf(loomPanes[0]); } catch (e) { console.error(e); @@ -1594,6 +1596,7 @@ export default class LoomPlugin extends Plugin { async save() { await this.saveData({ settings: this.settings, state: this.state }); this.setOpenAI(); + this.setAzureOpenAI(); this.setCohere(); } } diff --git a/package-lock.json b/package-lock.json index d248c91..b73bcc6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "obsidian-loom", - "version": "1.3.0", + "version": "1.5.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "obsidian-loom", - "version": "1.3.0", + "version": "1.5.2", "license": "MIT", "dependencies": { "@codemirror/state": "^6.2.0",