mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
fix blank page when redirected to national currencies tab
This commit is contained in:
parent
003fac3da4
commit
83c5d505c3
@ -357,25 +357,23 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
|
||||
settingsButtonWithBadge.getStyleClass().add("new");
|
||||
|
||||
navigation.addListener((viewPath, data) -> {
|
||||
UserThread.execute(() -> {
|
||||
if (viewPath.size() != 2 || viewPath.indexOf(MainView.class) != 0)
|
||||
return;
|
||||
if (viewPath.size() != 2 || viewPath.indexOf(MainView.class) != 0)
|
||||
return;
|
||||
|
||||
Class<? extends View> viewClass = viewPath.tip();
|
||||
View view = viewLoader.load(viewClass);
|
||||
contentContainer.getChildren().setAll(view.getRoot());
|
||||
Class<? extends View> viewClass = viewPath.tip();
|
||||
View view = viewLoader.load(viewClass);
|
||||
contentContainer.getChildren().setAll(view.getRoot());
|
||||
|
||||
try {
|
||||
navButtons.getToggles().stream()
|
||||
.filter(toggle -> toggle instanceof NavButton)
|
||||
.filter(button -> viewClass == ((NavButton) button).viewClass)
|
||||
.findFirst()
|
||||
.orElseThrow(() -> new HavenoException("No button matching %s found", viewClass))
|
||||
.setSelected(true);
|
||||
} catch (HavenoException e) {
|
||||
navigation.navigateTo(MainView.class, MarketView.class, OfferBookChartView.class);
|
||||
}
|
||||
});
|
||||
try {
|
||||
navButtons.getToggles().stream()
|
||||
.filter(toggle -> toggle instanceof NavButton)
|
||||
.filter(button -> viewClass == ((NavButton) button).viewClass)
|
||||
.findFirst()
|
||||
.orElseThrow(() -> new HavenoException("No button matching %s found", viewClass))
|
||||
.setSelected(true);
|
||||
} catch (HavenoException e) {
|
||||
navigation.navigateTo(MainView.class, MarketView.class, OfferBookChartView.class);
|
||||
}
|
||||
});
|
||||
|
||||
VBox splashScreen = createSplashScreen();
|
||||
|
@ -268,7 +268,7 @@ public class MainViewModel implements ViewModel, HavenoSetup.HavenoSetupListener
|
||||
setupDevDummyPaymentAccounts();
|
||||
}
|
||||
|
||||
getShowAppScreen().set(true);
|
||||
UserThread.execute(() -> getShowAppScreen().set(true));
|
||||
|
||||
// We only show the popup if the user has already set up any fiat account. For new users it is not a rule
|
||||
// change and for altcoins its not relevant.
|
||||
|
Loading…
Reference in New Issue
Block a user