Skip to content

Commit

Permalink
updated the cmd.Confirm condition to include a prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffB42 committed Apr 3, 2021
1 parent 91eb5fc commit 2f67f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uiWidgets/SystemCommandButton.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func CreateSystemCommandButton(

confirmationMessage := ""
if len(cmd.Confirm) != 0 {
confirmationMessage = cmd.Confirm
confirmationMessage = fmt.Sprintf("%s\n\nDo you wish to proceed?", cmd.Confirm)
} else if len(name) != 0 {
confirmationMessage = fmt.Sprintf("Do you wish to %s?", name)
} else {
Expand Down

0 comments on commit 2f67f64

Please sign in to comment.