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

View File

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