disable dispute summary cancel button after confirmed

This commit is contained in:
woodser 2024-01-15 19:36:08 -05:00
parent 09638d7046
commit ec19a67626

View file

@ -594,9 +594,9 @@ public class DisputeSummaryWindow extends Overlay<DisputeSummaryWindow> {
// show confirmation // show confirmation
showPayoutTxConfirmation(contract, showPayoutTxConfirmation(contract,
payoutTx, payoutTx,
() -> doClose(closeTicketButton)); () -> doClose(closeTicketButton, cancelButton));
} else { } else {
doClose(closeTicketButton); doClose(closeTicketButton, cancelButton);
} }
}); });
@ -653,7 +653,9 @@ public class DisputeSummaryWindow extends Overlay<DisputeSummaryWindow> {
} }
} }
private void doClose(Button closeTicketButton) { private void doClose(Button closeTicketButton, Button cancelButton) {
cancelButton.setDisable(true);
DisputeManager<? extends DisputeList<Dispute>> disputeManager = getDisputeManager(dispute); DisputeManager<? extends DisputeList<Dispute>> disputeManager = getDisputeManager(dispute);
if (disputeManager == null) { if (disputeManager == null) {
return; return;