Fixed breadcrumb updating.

This commit is contained in:
Andrew Lalis 2023-12-26 12:52:15 -05:00
parent ac011b7382
commit 4eb7ca6b8e
2 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@
<groupId>com.andrewlalis</groupId>
<artifactId>javafx-scene-router</artifactId>
<version>1.5.0</version>
<version>1.5.1</version>
<name>JavaFX Scene Router</name>
<description>A library that provides a router implementation for JavaFX, for browser-like navigation between pages.</description>
<url>https://github.com/andrewlalis/javafx-scene-router</url>

View File

@ -164,6 +164,7 @@ public class SceneRouter {
CompletableFuture<Boolean> cf = new CompletableFuture<>();
Platform.runLater(() -> {
history.clearForward();
breadCrumbs.setAll(history.getBreadCrumbs());
cf.complete(true);
});
return cf;