Skip to content

Commit

Permalink
fix hot update in settings preview
Browse files Browse the repository at this point in the history
  • Loading branch information
Benature committed Mar 14, 2024
1 parent c164483 commit 42b3c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class MetadataHiderSettingTab extends PluginSettingTab {
cb.setPlaceholder(t.settingAddIconPlaceholderImage)
.setValue(iconSetting.image)
.onChange(async (newValue) => {
img.setAttribute("src", newValue);
img.setAttribute("src", this.plugin.getResourcePath(newValue));
this.plugin.settings.IconAttrList[index].image = newValue;
await this.plugin.saveSettings();
this.debouncedGenerate();
Expand Down

0 comments on commit 42b3c78

Please sign in to comment.