@@ -553,8 +553,15 @@ private VBox createSplashScreen() {
553
553
xmrSplashInfo = new AutoTooltipLabel ();
554
554
xmrSplashInfo .textProperty ().bind (model .getXmrInfo ());
555
555
walletServiceErrorMsgListener = (ov , oldValue , newValue ) -> {
556
- xmrSplashInfo .setId ("splash-error-state-msg" );
557
- xmrSplashInfo .getStyleClass ().add ("error-text" );
556
+ UserThread .execute (() -> {
557
+ if (newValue != null && !newValue .isEmpty ()) {
558
+ xmrSplashInfo .setId ("splash-error-state-msg" );
559
+ if (!xmrSplashInfo .getStyleClass ().contains ("error-text" )) xmrSplashInfo .getStyleClass ().add ("error-text" );
560
+ } else {
561
+ xmrSplashInfo .setId ("" );
562
+ xmrSplashInfo .getStyleClass ().remove ("error-text" );
563
+ }
564
+ });
558
565
};
559
566
model .getConnectionServiceErrorMsg ().addListener (walletServiceErrorMsgListener );
560
567
@@ -710,17 +717,19 @@ private AnchorPane createFooter() {
710
717
//blockchainSyncIndicator.progressProperty().bind(model.getCombinedSyncProgress());
711
718
712
719
model .getConnectionServiceErrorMsg ().addListener ((ov , oldValue , newValue ) -> {
713
- if (newValue != null ) {
714
- xmrInfoLabel .setId ("splash-error-state-msg" );
715
- xmrInfoLabel .getStyleClass ().add ("error-text" );
716
- xmrNetworkWarnMsgPopup = new Popup ().warning (newValue );
717
- xmrNetworkWarnMsgPopup .show ();
718
- } else {
719
- xmrInfoLabel .setId ("footer-pane" );
720
- xmrInfoLabel .getStyleClass ().remove ("error-text" );
721
- if (xmrNetworkWarnMsgPopup != null )
722
- xmrNetworkWarnMsgPopup .hide ();
723
- }
720
+ UserThread .execute (() -> {
721
+ if (newValue != null && !newValue .isEmpty ()) {
722
+ xmrInfoLabel .setId ("splash-error-state-msg" );
723
+ if (!xmrInfoLabel .getStyleClass ().contains ("error-text" )) xmrInfoLabel .getStyleClass ().add ("error-text" );
724
+ xmrNetworkWarnMsgPopup = new Popup ().warning (newValue );
725
+ xmrNetworkWarnMsgPopup .show ();
726
+ } else {
727
+ xmrInfoLabel .setId ("footer-pane" );
728
+ xmrInfoLabel .getStyleClass ().remove ("error-text" );
729
+ if (xmrNetworkWarnMsgPopup != null )
730
+ xmrNetworkWarnMsgPopup .hide ();
731
+ }
732
+ });
724
733
});
725
734
726
735
model .getTopErrorMsg ().addListener ((ov , oldValue , newValue ) -> {
0 commit comments