mirror of
https://github.com/arduino/Arduino.git
synced 2025-02-27 21:54:30 +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);
|
JOptionPane.QUESTION_MESSAGE);
|
||||||
|
|
||||||
switch (result) {
|
switch (result) {
|
||||||
case JOptionPane.YES_OPTION:
|
case JOptionPane.YES_OPTION:
|
||||||
return handleSave(true);
|
return handleSave(true);
|
||||||
case JOptionPane.NO_OPTION:
|
case JOptionPane.NO_OPTION:
|
||||||
return true; // ok to continue
|
return true; // ok to continue
|
||||||
case JOptionPane.CANCEL_OPTION:
|
case JOptionPane.CANCEL_OPTION:
|
||||||
case JOptionPane.CLOSED_OPTION: // Escape key pressed
|
case JOptionPane.CLOSED_OPTION: // Escape key pressed
|
||||||
return false;
|
return false;
|
||||||
default:
|
default:
|
||||||
throw new IllegalStateException();
|
throw new IllegalStateException();
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user