refactor trade protocol error handling and wallet deletion

This commit is contained in:
woodser 2024-05-05 15:20:35 -04:00
parent b034ac8c13
commit 6fb846d783
10 changed files with 233 additions and 205 deletions

View file

@ -556,7 +556,7 @@ public class FailedTradesView extends ActivatableViewAndModel<VBox, FailedTrades
@Override
public void updateItem(FailedTradesListItem newItem, boolean empty) {
super.updateItem(newItem, empty);
if (!empty && newItem != null) {
if (!empty && newItem != null && newItem.getTrade().isDepositsPublished()) {
Label icon = FormBuilder.getIcon(AwesomeIcon.UNDO);
JFXButton iconButton = new JFXButton("", icon);
iconButton.setStyle("-fx-cursor: hand;");