From 4ca05692dd8b3742c701d9cd3eacb92e67b4f2c3 Mon Sep 17 00:00:00 2001 From: woodser Date: Fri, 26 Sep 2025 00:03:14 -0400 Subject: [PATCH] support moving trades to failed trades with right click (#1978) --- .../portfolio/pendingtrades/PendingTradesView.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/desktop/src/main/java/haveno/desktop/main/portfolio/pendingtrades/PendingTradesView.java b/desktop/src/main/java/haveno/desktop/main/portfolio/pendingtrades/PendingTradesView.java index 054f3cd853..6886b3fdd2 100644 --- a/desktop/src/main/java/haveno/desktop/main/portfolio/pendingtrades/PendingTradesView.java +++ b/desktop/src/main/java/haveno/desktop/main/portfolio/pendingtrades/PendingTradesView.java @@ -239,7 +239,15 @@ public class PendingTradesView extends ActivatableViewAndModel { + if (isMaybeInvalidTrade(row.getItem().getTrade())) { + onMoveInvalidTradeToFailedTrades(row.getItem().getTrade()); + } else { + model.dataModel.tradeManager.onMoveInvalidTradeToFailedTrades(row.getItem().getTrade()); + } + }); + rowMenu.getItems().addAll(duplicateItem, moveToFailedItem); row.contextMenuProperty().bind( Bindings.when(Bindings.isNotNull(row.itemProperty())) .then(rowMenu)