Browse Source

fix loss of transaction labels when switching servers

terminal
Craig Raw 3 years ago
parent
commit
a825a693c1
  1. 2
      src/main/java/com/sparrowwallet/sparrow/wallet/WalletForm.java

2
src/main/java/com/sparrowwallet/sparrow/wallet/WalletForm.java

@ -153,7 +153,7 @@ public class WalletForm {
wallet.clearHistory(); wallet.clearHistory();
AppServices.clearTransactionHistoryCache(wallet); AppServices.clearTransactionHistoryCache(wallet);
EventManager.get().post(new WalletHistoryClearedEvent(wallet, pastWallet, getWalletId())); EventManager.get().post(new WalletHistoryClearedEvent(wallet, pastWallet == null ? previousWallet : pastWallet, getWalletId()));
} else { } else {
if(AppServices.isConnected()) { if(AppServices.isConnected()) {
log.error("Error retrieving wallet history", workerStateEvent.getSource().getException()); log.error("Error retrieving wallet history", workerStateEvent.getSource().getException());

Loading…
Cancel
Save