Browse Source

qt history: fix toggling fiat capital gains

3.3.3.1
SomberNight 6 years ago
parent
commit
4791c7f424
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 2
      electrum/gui/qt/history_list.py

2
electrum/gui/qt/history_list.py

@ -199,6 +199,7 @@ class HistoryModel(QAbstractItemModel, PrintError):
fx = self.parent.fx
if fx: fx.history_used_spot = False
r = self.parent.wallet.get_full_history(domain=self.get_domain(), from_timestamp=None, to_timestamp=None, fx=fx)
self.set_visibility_of_columns()
if r['transactions'] == list(self.transactions.values()):
return
old_length = len(self.transactions)
@ -231,7 +232,6 @@ class HistoryModel(QAbstractItemModel, PrintError):
for txid, tx_item in self.transactions.items():
tx_mined_info = self.tx_mined_info_from_tx_item(tx_item)
self.tx_status_cache[txid] = self.parent.wallet.get_tx_status(txid, tx_mined_info)
self.set_visibility_of_columns()
def set_visibility_of_columns(self):
hide = self.view.hideColumn

Loading…
Cancel
Save