Jskad's "Do you want to save your changes before you quit?" dialog is now
optional.
This commit is contained in:
parent
947ac5537a
commit
86e384352b
2 changed files with 9 additions and 0 deletions
|
@ -640,6 +640,10 @@ public class Jskad extends JPanel implements DocumentListener {
|
|||
}
|
||||
|
||||
private boolean checkSave() {
|
||||
if (ThdlOptions.getBooleanOption("thdl.Jskad.do.not.confirm.quit")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
int saveFirst = JOptionPane.showConfirmDialog(this, "Do you want to save your changes?", "Please select", JOptionPane.YES_NO_CANCEL_OPTION);
|
||||
|
||||
switch (saveFirst) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue