1
0

utxo_dialog: fix minor regression (set cursor to top after drawing)

This commit is contained in:
ThomasV
2023-03-15 11:11:11 +01:00
parent 2db0bc9f73
commit 107a6f9080

View File

@@ -100,10 +100,7 @@ class UTXODialog(WindowModalDialog):
ASCII_PIPE = ''
ASCII_SPACE = ' '
# set cursor to top
cursor.setPosition(0)
self.parents_list.clear()
self.parents_list.setTextCursor(cursor)
self.num_reuse = 0
def print_ascii_tree(_txid, prefix, is_last, is_uncle):
if _txid not in parents:
@@ -144,6 +141,9 @@ class UTXODialog(WindowModalDialog):
self.stats_label.setText(msg)
self.txo_color_parent.legend_label.setVisible(True)
self.txo_color_uncle.legend_label.setVisible(bool(self.num_reuse))
# set cursor to top
cursor.setPosition(0)
self.parents_list.setTextCursor(cursor)
def open_tx(self, txid):
if isinstance(txid, QUrl):