Fix for handling fo modal window closing

Related to #1042
This commit is contained in:
r8d8 2017-12-07 17:53:19 +02:00
parent ddd857a7f9
commit 945ef24772
No known key found for this signature in database
GPG key ID: 563A27DDABAA7893

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();