mirror of
https://github.com/cosmicoptima/loom.git
synced 2026-07-22 07:40:25 +00:00
fix preset selection in sidebar
This commit is contained in:
parent
d9c7cd65f9
commit
861e455b07
3 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "loom",
|
||||
"name": "Loom",
|
||||
"version": "1.20.1",
|
||||
"version": "1.20.2",
|
||||
"minAppVersion": "0.15.0",
|
||||
"description": "Loom in Obsidian",
|
||||
"author": "celeste",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "obsidian-loom",
|
||||
"version": "1.20.1",
|
||||
"version": "1.20.2",
|
||||
"description": "Loom in Obsidian",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
|||
4
views.ts
4
views.ts
|
|
@ -324,12 +324,12 @@ export class LoomView extends ItemView {
|
|||
const preset = settings.modelPresets[i];
|
||||
presetDropdown.createEl("option", {
|
||||
text: preset.name,
|
||||
attr: { selected: settings.modelPreset === parseInt(i), value: i },
|
||||
attr: { selected: settings.modelPreset === parseInt(i) ? "selected" : null, value: i },
|
||||
});
|
||||
}
|
||||
|
||||
presetDropdown.addEventListener("change", () =>
|
||||
this.app.workspace.trigger("loom:set-setting", "modelPreset", presetDropdown.value)
|
||||
this.app.workspace.trigger("loom:set-setting", "modelPreset", parseInt(presetDropdown.value))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue