Skip to content

Commit

Permalink
Merge a07f0ab into 4e40359
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-lundqvist committed Sep 8, 2020
2 parents 4e40359 + a07f0ab commit f9e08b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gui/qt/history_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,18 @@ def update_labels(self):
return
root = self.invisibleRootItem()
child_count = root.childCount()
filtered_list = []
for i in range(child_count):
item = root.child(i)
txid = item.data(0, Qt.UserRole)
label = self.wallet.get_label(txid)
item.setText(3, label)
filtered = run_hook("history_list_filter", self, item, label, multi=True) or []
if any(filtered):
filtered_list.append(item)

for item in filtered_list:
root.removeChild(item)

def update_item(self, tx_hash, height, conf, timestamp):
if not self.wallet: return # can happen on startup if this is called before self.on_update()
Expand Down

0 comments on commit f9e08b4

Please sign in to comment.