Skip to content

Commit

Permalink
Update MacroHelper.java (#2322)
Browse files Browse the repository at this point in the history
Reusing prompt values
  • Loading branch information
smiley561 authored Sep 15, 2023
1 parent 3dd2ab3 commit 74bd85c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ private static String parsePrompts(String command) {
if (result == JOptionPane.OK_OPTION) {
for (int i = 0; i < prompts.size(); i++) {
command = command.replace("{prompt|" + prompts.get(i) + "}", fields.get(i).getText());
command = command.replace("{" + prompts.get(i) + "}", fields.get(i).getText()); // for reusing values
}
} else {
command = "";
Expand Down

0 comments on commit 74bd85c

Please sign in to comment.