From 40a3eb5d4f0c733017808551974320366be605b3 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Thu, 9 Mar 2023 11:01:25 +0200 Subject: [PATCH] followup, minor tidying --- .../java/com/sparrowwallet/sparrow/control/CoinCell.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/control/CoinCell.java b/src/main/java/com/sparrowwallet/sparrow/control/CoinCell.java index c04ff972..250a6bfc 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/CoinCell.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/CoinCell.java @@ -31,7 +31,6 @@ class CoinCell extends TreeTableCell 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 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();