Skip to content

Commit

Permalink
In settings, after clicking add button, new entry will be added at th…
Browse files Browse the repository at this point in the history
…e first, rather than at the last. It is more convenient for users to see the new entry when there are many entries already.
  • Loading branch information
Benature committed Apr 1, 2024
1 parent 4675e0a commit a39dcd6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
## dev
<!-- ## 0.0.12 -->

## 0.0.13
- [updated] In settings, after clicking add button, new entry will be added at the first, rather than at the last. It is more convenient for users to see the new entry when there are many entries already.

## 0.0.12
- PR [#4](https://github.com/Benature/obsidian-metadata-icon/pull/4)

Expand Down
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class MetadataHiderSettingTab extends PluginSettingTab {
button.setTooltip("Add new icon")
.setButtonText("+")
.setCta().onClick(async () => {
this.plugin.settings.IconAttrList.push({
this.plugin.settings.IconAttrList.unshift({
entry: "",
image: "",
});
Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "metadata-icon",
"name": "Metadata Icon",
"version": "0.0.12",
"version": "0.0.13",
"minAppVersion": "0.15.0",
"description": "Change metadata entry icon",
"author": "Benature",
Expand All @@ -12,4 +12,4 @@
"微信/支付宝": "https://s2.loli.net/2024/01/30/jQ9fTSyBxvXRoOM.png"
},
"isDesktopOnly": false
}
}

0 comments on commit a39dcd6

Please sign in to comment.