mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
add tooltip to wallet tab label on load failure
This commit is contained in:
parent
956c2eaaaa
commit
5da9532614
1 changed files with 2 additions and 0 deletions
|
@ -2027,6 +2027,7 @@ public class AppController implements Initializable {
|
||||||
Label tabLabel = (Label)tab.getGraphic();
|
Label tabLabel = (Label)tab.getGraphic();
|
||||||
if(!tabLabel.getStyleClass().contains("failure")) {
|
if(!tabLabel.getStyleClass().contains("failure")) {
|
||||||
tabLabel.getGraphic().getStyleClass().add("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) {
|
private void tabLabelRemoveFailure(Tab tab) {
|
||||||
Label tabLabel = (Label)tab.getGraphic();
|
Label tabLabel = (Label)tab.getGraphic();
|
||||||
tabLabel.getGraphic().getStyleClass().remove("failure");
|
tabLabel.getGraphic().getStyleClass().remove("failure");
|
||||||
|
tabLabel.setTooltip(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setTorIcon() {
|
private void setTorIcon() {
|
||||||
|
|
Loading…
Reference in a new issue