Reload settings when indexing images

This commit is contained in:
Lucas Sköld
2025-02-04 17:30:39 +01:00
parent 8a2e045b65
commit 80a458453f
+1
View File
@@ -78,6 +78,7 @@ const settingsDefinitions = [
category: ["Syntax Highlighting", "Preview Image", "IndexImages"],
type: SettingsHelper.ST.BUTTON("Index Images", async () => {
await fetch(`${API_PREFIX}/index`);
SettingsHelper.PresetOnChange.reloadSettings();
}),
tooltip: "Update images available for preview.",
},