Skip to content

Commit

Permalink
Implement #28 - Fill out prompt with current property value.
Browse files Browse the repository at this point in the history
  • Loading branch information
chhoumann committed Jun 26, 2021
1 parent 6f0f361 commit 0936012
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "metaedit",
"name": "MetaEdit",
"version": "1.6.15",
"version": "1.6.16",
"minAppVersion": "0.12.0",
"description": "MetaEdit helps you manage your metadata.",
"author": "Christian B. B. Houmann",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metaedit",
"version": "1.6.15",
"version": "1.6.16",
"description": "MetaEdit helps you manage your metadata.",
"main": "main.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/metaController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default class MetaController {
if (autoProp)
newValue = autoProp;
else
newValue = await GenericPrompt.Prompt(this.app, `Enter a new value for ${property.key}`, property.content);
newValue = await GenericPrompt.Prompt(this.app, `Enter a new value for ${property.key}`, property.content, property.content);

if (newValue) {
await this.updatePropertyInFile(property, newValue, file);
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"1.6.15": "0.12.0"
"1.6.16": "0.12.0"
}

0 comments on commit 0936012

Please sign in to comment.