Merge branch 'fix/close_handler' of https://github.com/r8d8/exchange into r8d8-fix/close_handler

This commit is contained in:
Manfred Karrer 2017-12-07 12:53:43 -05:00
commit a944aba33d
No known key found for this signature in database
GPG key ID: 401250966A6B2C46

View file

@ -459,6 +459,10 @@ public abstract class Overlay<T extends Overlay> {
Window window = rootScene.getWindow();
setModality();
stage.initStyle(StageStyle.TRANSPARENT);
stage.setOnCloseRequest(event -> {
event.consume();
doClose();
});
stage.show();
layout();