fix navigation links from market view to offer view #974

Co-authored-by: nsec1 <167650977+nsec1@users.noreply.github.com>
This commit is contained in:
woodser 2024-06-03 13:12:52 -04:00
parent b963fd501f
commit 99bb29e0b0

View file

@ -352,7 +352,7 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
settingsButtonWithBadge.getStyleClass().add("new");
navigation.addListener((viewPath, data) -> {
UserThread.execute(() -> {
UserThread.await(() -> {
if (viewPath.size() != 2 || viewPath.indexOf(MainView.class) != 0) return;
Class<? extends View> viewClass = viewPath.tip();