Browse Source

minor ui fix, safe unsubscribe

bwt
Craig Raw 4 years ago
parent
commit
ed9bc882b7
  1. 1
      src/main/java/com/sparrowwallet/sparrow/control/EntryCell.java
  2. 4
      src/main/java/com/sparrowwallet/sparrow/wallet/TransactionEntry.java

1
src/main/java/com/sparrowwallet/sparrow/control/EntryCell.java

@ -228,6 +228,7 @@ class EntryCell extends TreeTableCell<Entry, Entry> {
cell.getStyleClass().remove("utxo-row"); cell.getStyleClass().remove("utxo-row");
cell.getStyleClass().remove("address-cell"); cell.getStyleClass().remove("address-cell");
cell.getStyleClass().remove("hashindex-row"); cell.getStyleClass().remove("hashindex-row");
cell.getStyleClass().remove("confirming");
cell.getStyleClass().remove("spent"); cell.getStyleClass().remove("spent");
cell.getStyleClass().remove("unspendable"); cell.getStyleClass().remove("unspendable");

4
src/main/java/com/sparrowwallet/sparrow/wallet/TransactionEntry.java

@ -211,7 +211,11 @@ public class TransactionEntry extends Entry implements Comparable<TransactionEnt
public void walletTabsClosed(WalletTabsClosedEvent event) { public void walletTabsClosed(WalletTabsClosedEvent event) {
for(WalletTabData tabData : event.getClosedWalletTabData()) { for(WalletTabData tabData : event.getClosedWalletTabData()) {
if(tabData.getWalletForm().getWallet() == wallet) { if(tabData.getWalletForm().getWallet() == wallet) {
try {
EventManager.get().unregister(this); EventManager.get().unregister(this);
} catch(IllegalArgumentException e) {
//Safe to ignore
}
} }
} }
} }

Loading…
Cancel
Save