minor ui fix, safe unsubscribe

This commit is contained in:
Craig Raw 2020-09-01 11:33:18 +02:00
parent 5054ab9564
commit ed9bc882b7
2 changed files with 6 additions and 1 deletions

View file

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

View file

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