We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1f2088 commit c96312aCopy full SHA for c96312a
pacman-ui/src/main/java/de/amr/pacmanfx/ui/PacManGames_UI_Impl.java
@@ -310,11 +310,13 @@ public void showStartView() {
310
theGameClock.setTargetFrameRate(Globals.NUM_TICKS_PER_SEC);
311
theSound().stopAll();
312
playView.dashboard().setVisible(false);
313
- startPagesView.currentStartPage().ifPresent(startPage -> {
314
- startPage.layoutRoot().requestFocus();
315
- startPage.onEnter(this); // sets game variant!
316
- });
317
selectView(startPagesView);
+ startPagesView.currentStartPage().ifPresent(startPage -> {
+ Platform.runLater(() -> {
+ startPage.onEnter(this); // sets game variant!
+ startPage.layoutRoot().requestFocus();
318
+ });
319
320
}
321
322
@Override
0 commit comments