mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-18 08:29:49 +00:00
do not show used addresses if there are not any
This commit is contained in:
parent
ecc59b464a
commit
acca8d502b
1 changed files with 4 additions and 1 deletions
|
@ -1232,7 +1232,7 @@ class ElectrumWindow(QMainWindow):
|
||||||
seq_item = QTreeWidgetItem( [ name, '', '', '', ''] )
|
seq_item = QTreeWidgetItem( [ name, '', '', '', ''] )
|
||||||
account_item.addChild(seq_item)
|
account_item.addChild(seq_item)
|
||||||
used_item = QTreeWidgetItem( [ _("Used"), '', '', '', ''] )
|
used_item = QTreeWidgetItem( [ _("Used"), '', '', '', ''] )
|
||||||
seq_item.addChild(used_item)
|
used_flag = False
|
||||||
if not is_change: seq_item.setExpanded(True)
|
if not is_change: seq_item.setExpanded(True)
|
||||||
|
|
||||||
is_red = False
|
is_red = False
|
||||||
|
@ -1255,6 +1255,9 @@ class ElectrumWindow(QMainWindow):
|
||||||
if is_red:
|
if is_red:
|
||||||
item.setBackgroundColor(1, QColor('red'))
|
item.setBackgroundColor(1, QColor('red'))
|
||||||
if len(h) > 0 and c == -u:
|
if len(h) > 0 and c == -u:
|
||||||
|
if not used_flag:
|
||||||
|
seq_item.addChild(used_item)
|
||||||
|
used_flag = True
|
||||||
used_item.addChild(item)
|
used_item.addChild(item)
|
||||||
else:
|
else:
|
||||||
seq_item.addChild(item)
|
seq_item.addChild(item)
|
||||||
|
|
Loading…
Add table
Reference in a new issue