mirror of
https://github.com/nasa/trick.git
synced 2025-06-17 06:38:27 +00:00
Default exit confirmation dialog to off
Worst feature ever. Closes #612
This commit is contained in:
@ -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)) {
|
||||||
|
Reference in New Issue
Block a user