Skip to content

Commit

Permalink
Rename variable result -> selectedOption
Browse files Browse the repository at this point in the history
  • Loading branch information
bwRavencl committed Oct 8, 2024
1 parent 6eda131 commit e6d5366
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/bwravencl/controllerbuddy/gui/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -3480,10 +3480,10 @@ private AbstractProfileFileChooser(final FileFilter fileFilter) {
public void approveSelection() {
final var file = getSelectedFile();
if (file.exists() && getDialogType() == SAVE_DIALOG) {
final var result = JOptionPane.showConfirmDialog(this,
final var selectedOption = JOptionPane.showConfirmDialog(this,
MessageFormat.format(file.getName(), strings.getString("FILE_EXISTS_DIALOG_TEXT")),
strings.getString("FILE_EXISTS_DIALOG_TITLE"), JOptionPane.YES_NO_CANCEL_OPTION);
switch (result) {
switch (selectedOption) {
case JOptionPane.CANCEL_OPTION:
cancelSelection();
case JOptionPane.NO_OPTION, JOptionPane.CLOSED_OPTION:
Expand Down

0 comments on commit e6d5366

Please sign in to comment.