mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-12-25 05:06:45 +00:00
followup, minor tidying
This commit is contained in:
parent
35965235f3
commit
40a3eb5d4f
1 changed files with 2 additions and 4 deletions
|
@ -31,7 +31,6 @@ class CoinCell extends TreeTableCell<Entry, Number> implements ConfirmationsList
|
|||
tooltip = new CoinTooltip();
|
||||
tooltip.setShowDelay(Duration.millis(500));
|
||||
contextMenu = new CoinContextMenu();
|
||||
setContextMenu(contextMenu);
|
||||
getStyleClass().add("coin-cell");
|
||||
if(Platform.getCurrent() == Platform.OSX) {
|
||||
getStyleClass().add("number-field");
|
||||
|
@ -165,13 +164,12 @@ class CoinCell extends TreeTableCell<Entry, Number> implements ConfirmationsList
|
|||
|
||||
private static class CoinContextMenu extends ContextMenu {
|
||||
private Number amount;
|
||||
public CoinContextMenu() {
|
||||
}
|
||||
|
||||
public void updateAmount(Number amount) {
|
||||
if (amount.equals(this.amount)) {
|
||||
if(amount.equals(this.amount)) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.amount = amount;
|
||||
getItems().clear();
|
||||
|
||||
|
|
Loading…
Reference in a new issue