From ec19a67626611375b4fdf80b093527946744e89f Mon Sep 17 00:00:00 2001 From: woodser Date: Mon, 15 Jan 2024 19:36:08 -0500 Subject: [PATCH] disable dispute summary cancel button after confirmed --- .../main/overlays/windows/DisputeSummaryWindow.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/desktop/src/main/java/haveno/desktop/main/overlays/windows/DisputeSummaryWindow.java b/desktop/src/main/java/haveno/desktop/main/overlays/windows/DisputeSummaryWindow.java index a5e4a683..ffe6741b 100644 --- a/desktop/src/main/java/haveno/desktop/main/overlays/windows/DisputeSummaryWindow.java +++ b/desktop/src/main/java/haveno/desktop/main/overlays/windows/DisputeSummaryWindow.java @@ -594,9 +594,9 @@ public class DisputeSummaryWindow extends Overlay { // show confirmation showPayoutTxConfirmation(contract, payoutTx, - () -> doClose(closeTicketButton)); + () -> doClose(closeTicketButton, cancelButton)); } else { - doClose(closeTicketButton); + doClose(closeTicketButton, cancelButton); } }); @@ -653,7 +653,9 @@ public class DisputeSummaryWindow extends Overlay { } } - private void doClose(Button closeTicketButton) { + private void doClose(Button closeTicketButton, Button cancelButton) { + cancelButton.setDisable(true); + DisputeManager> disputeManager = getDisputeManager(dispute); if (disputeManager == null) { return;