mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 05:07:54 +00:00
Default exit confirmation dialog to off
Worst feature ever. Closes #612
This commit is contained in:
parent
ba2df0757e
commit
62f95e784f
@ -362,8 +362,7 @@ public abstract class TrickApplication extends SingleFrameApplication implements
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void startup() {
|
protected void startup() {
|
||||||
// Add this exit listener if the sub class likes the confirmation dialog
|
String defaultValue = Boolean.toString(false);
|
||||||
String defaultValue = Boolean.toString(true);
|
|
||||||
boolean savedExitProperty = new Boolean(trickProperties.getProperty(
|
boolean savedExitProperty = new Boolean(trickProperties.getProperty(
|
||||||
"confirmExit", defaultValue)).booleanValue();
|
"confirmExit", defaultValue)).booleanValue();
|
||||||
if (( savedExitProperty == true ) && (getExitListeners().length==0)) {
|
if (( savedExitProperty == true ) && (getExitListeners().length==0)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user