mirror of
https://github.com/sparrowwallet/sparrow.git
synced 2024-11-05 05:46:44 +00:00
minor ui fix, safe unsubscribe
This commit is contained in:
parent
5054ab9564
commit
ed9bc882b7
2 changed files with 6 additions and 1 deletions
|
@ -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");
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
||||||
EventManager.get().unregister(this);
|
try {
|
||||||
|
EventManager.get().unregister(this);
|
||||||
|
} catch(IllegalArgumentException e) {
|
||||||
|
//Safe to ignore
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue