From f889aef403c7d7a758f2514db1a70d1f647f8860 Mon Sep 17 00:00:00 2001 From: woodser Date: Thu, 9 Nov 2023 15:28:28 -0500 Subject: [PATCH] show popup on startup error, e.g. close monero-wallet-rpc --- .../src/main/java/haveno/desktop/main/MainView.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/desktop/src/main/java/haveno/desktop/main/MainView.java b/desktop/src/main/java/haveno/desktop/main/MainView.java index a3966492ba..aa0452eb71 100644 --- a/desktop/src/main/java/haveno/desktop/main/MainView.java +++ b/desktop/src/main/java/haveno/desktop/main/MainView.java @@ -670,14 +670,14 @@ public class MainView extends InitializableView { if (newValue != null) { xmrInfoLabel.setId("splash-error-state-msg"); xmrInfoLabel.getStyleClass().add("error-text"); - // if (xmrNetworkWarnMsgPopup == null) { - // xmrNetworkWarnMsgPopup = new Popup().warning(newValue); - // xmrNetworkWarnMsgPopup.show(); - // } + if (xmrNetworkWarnMsgPopup == null) { + xmrNetworkWarnMsgPopup = new Popup().warning(newValue); + xmrNetworkWarnMsgPopup.show(); + } } else { xmrInfoLabel.setId("footer-pane"); - // if (xmrNetworkWarnMsgPopup != null) - // xmrNetworkWarnMsgPopup.hide(); + if (xmrNetworkWarnMsgPopup != null) + xmrNetworkWarnMsgPopup.hide(); } });