Skip to content

Commit

Permalink
delay event-broker event
Browse files Browse the repository at this point in the history
refs #448
  • Loading branch information
tomsontom committed Sep 28, 2022
1 parent b666dd1 commit 7f7be1c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,10 @@ protected Stage createWidget() {

this.stage.setOnCloseRequest(this::handleOnCloseRequest);
this.stage.setOnShown(e -> {
this.eventBroker.send(TOPIC_WINDOW_SHOWN, this.stage);
// The window is not visible on screen when the onShow-Event is delivered
Platform.runLater( () -> {
this.eventBroker.send(TOPIC_WINDOW_SHOWN, this.stage);
});
});

this.stage.focusedProperty().addListener(this::handledFocus);
Expand Down

0 comments on commit 7f7be1c

Please sign in to comment.