From 5da9532614a67a207ac5b3f197913a8cb1214c1a Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Tue, 31 May 2022 09:25:00 +0200 Subject: [PATCH] add tooltip to wallet tab label on load failure --- src/main/java/com/sparrowwallet/sparrow/AppController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sparrowwallet/sparrow/AppController.java b/src/main/java/com/sparrowwallet/sparrow/AppController.java index 32f2904e..1544020b 100644 --- a/src/main/java/com/sparrowwallet/sparrow/AppController.java +++ b/src/main/java/com/sparrowwallet/sparrow/AppController.java @@ -2027,6 +2027,7 @@ public class AppController implements Initializable { Label tabLabel = (Label)tab.getGraphic(); if(!tabLabel.getStyleClass().contains("failure")) { tabLabel.getGraphic().getStyleClass().add("failure"); + tabLabel.setTooltip(new Tooltip("Error loading transaction history from server")); } } @@ -2059,6 +2060,7 @@ public class AppController implements Initializable { private void tabLabelRemoveFailure(Tab tab) { Label tabLabel = (Label)tab.getGraphic(); tabLabel.getGraphic().getStyleClass().remove("failure"); + tabLabel.setTooltip(null); } private void setTorIcon() {