From 06cd07157c1133345f6c00ffd3ba44c1ea6fa092 Mon Sep 17 00:00:00 2001 From: l0nelyc0w <84252592+l0nelyc0w@users.noreply.github.com> Date: Mon, 7 Feb 2022 15:14:45 +0200 Subject: [PATCH] fix legacy tab (#233) --- .../bisq/desktop/main/support/SupportView.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/desktop/src/main/java/bisq/desktop/main/support/SupportView.java b/desktop/src/main/java/bisq/desktop/main/support/SupportView.java index bc097f91..953018e6 100644 --- a/desktop/src/main/java/bisq/desktop/main/support/SupportView.java +++ b/desktop/src/main/java/bisq/desktop/main/support/SupportView.java @@ -118,21 +118,17 @@ public class SupportView extends ActivatableView { tradersRefundDisputesTab.setClosable(false); root.getTabs().add(tradersRefundDisputesTab); - // We only show tradersArbitrationDisputesTab if we have cases - if (!arbitrationManager.getDisputesAsObservableList().isEmpty()) { - tradersArbitrationDisputesTab = new Tab(); - tradersArbitrationDisputesTab.setClosable(false); - root.getTabs().add(tradersArbitrationDisputesTab); - } + tradersArbitrationDisputesTab = new Tab(); + tradersArbitrationDisputesTab.setClosable(false); + root.getTabs().add(tradersArbitrationDisputesTab); // Has to be called before loadView updateAgentTabs(); tradersMediationDisputesTab.setText(Res.get("support.tab.mediation.support").toUpperCase()); tradersRefundDisputesTab.setText(Res.get("support.tab.arbitration.support").toUpperCase()); - if (tradersArbitrationDisputesTab != null) { - tradersArbitrationDisputesTab.setText(Res.get("support.tab.legacyArbitration.support").toUpperCase()); - } + tradersArbitrationDisputesTab.setText(Res.get("support.tab.legacyArbitration.support").toUpperCase()); + navigationListener = (viewPath, data) -> { if (viewPath.size() == 3 && viewPath.indexOf(SupportView.class) == 1) loadView(viewPath.tip());