mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
formatted
This commit is contained in:
parent
f183579eaa
commit
5cc770d41a
@ -2044,15 +2044,15 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
JOptionPane.QUESTION_MESSAGE);
|
||||
|
||||
switch (result) {
|
||||
case JOptionPane.YES_OPTION:
|
||||
return handleSave(true);
|
||||
case JOptionPane.NO_OPTION:
|
||||
return true; // ok to continue
|
||||
case JOptionPane.CANCEL_OPTION:
|
||||
case JOptionPane.CLOSED_OPTION: // Escape key pressed
|
||||
return false;
|
||||
default:
|
||||
throw new IllegalStateException();
|
||||
case JOptionPane.YES_OPTION:
|
||||
return handleSave(true);
|
||||
case JOptionPane.NO_OPTION:
|
||||
return true; // ok to continue
|
||||
case JOptionPane.CANCEL_OPTION:
|
||||
case JOptionPane.CLOSED_OPTION: // Escape key pressed
|
||||
return false;
|
||||
default:
|
||||
throw new IllegalStateException();
|
||||
}
|
||||
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user