mirror of
https://github.com/cosmicoptima/loom.git
synced 2026-07-22 07:40:25 +00:00
I forgot something
This commit is contained in:
parent
7e681ef545
commit
bc294bc9c4
2 changed files with 6 additions and 3 deletions
5
main.ts
5
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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
4
package-lock.json
generated
4
package-lock.json
generated
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue