Merge pull request #59 from Cosium/fix-57
Let the user close the getdown window on error, even when hideDecorations is set to true
This commit is contained in:
@@ -184,6 +184,19 @@ public class GetdownApp
|
|||||||
System.exit(exitCode);
|
System.exit(exitCode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void fail(String message) {
|
||||||
|
// If the frame was set to be undecorated, make window decoration available
|
||||||
|
// to allow the user to close the window
|
||||||
|
if(_frame != null && _frame.isUndecorated()){
|
||||||
|
_frame.dispose();
|
||||||
|
_frame.setUndecorated(false);
|
||||||
|
showContainer();
|
||||||
|
}
|
||||||
|
super.fail(message);
|
||||||
|
}
|
||||||
|
|
||||||
protected JFrame _frame;
|
protected JFrame _frame;
|
||||||
};
|
};
|
||||||
app.start();
|
app.start();
|
||||||
|
|||||||
Reference in New Issue
Block a user