mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 15:10:44 +01:00
Add shortcut for re-open a dispute for arbitrator
This commit is contained in:
parent
f8ba284358
commit
131c0b2758
1 changed files with 10 additions and 2 deletions
|
@ -264,6 +264,13 @@ public class TraderDisputeView extends ActivatableView<VBox, Void> {
|
|||
.actionButtonText("Copy")
|
||||
.onAction(() -> Utilities.copyToClipboard(message))
|
||||
.show();
|
||||
} else if (new KeyCodeCombination(KeyCode.U, KeyCombination.SHORTCUT_DOWN).match(event)) {
|
||||
// Hidden shortcut to re-open a dispute.
|
||||
if (selectedDispute != null && !disputeManager.isTrader(selectedDispute)) {
|
||||
if (selectedDisputeClosedPropertyListener != null)
|
||||
selectedDispute.isClosedProperty().removeListener(selectedDisputeClosedPropertyListener);
|
||||
selectedDispute.setIsClosed(false);
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -1110,9 +1117,10 @@ public class TraderDisputeView extends ActivatableView<VBox, Void> {
|
|||
setText(isClosed ? "Closed" : "Open");
|
||||
getTableRow().setOpacity(isClosed ? 0.4 : 1);
|
||||
} else {
|
||||
if (closedProperty != null)
|
||||
if (closedProperty != null) {
|
||||
closedProperty.removeListener(listener);
|
||||
|
||||
closedProperty = null;
|
||||
}
|
||||
setText("");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue