Merge branch 'used' of github.com:wozz/electrum into wozz-used
This commit is contained in:
commit
3c10a52ea1
|
@ -1276,6 +1276,8 @@ class ElectrumWindow(QMainWindow):
|
|||
name = _("Receiving") if not is_change else _("Change")
|
||||
seq_item = QTreeWidgetItem( [ name, '', '', '', ''] )
|
||||
account_item.addChild(seq_item)
|
||||
used_item = QTreeWidgetItem( [ _("Used"), '', '', '', ''] )
|
||||
used_flag = False
|
||||
if not is_change: seq_item.setExpanded(True)
|
||||
|
||||
is_red = False
|
||||
|
@ -1291,11 +1293,18 @@ class ElectrumWindow(QMainWindow):
|
|||
else:
|
||||
gap = 0
|
||||
|
||||
c, u = self.wallet.get_addr_balance(address)
|
||||
num_tx = '*' if h == ['*'] else "%d"%len(h)
|
||||
item = QTreeWidgetItem( [ address, '', '', num_tx] )
|
||||
self.update_receive_item(item, len(h))
|
||||
if is_red:
|
||||
item.setBackgroundColor(1, QColor('red'))
|
||||
if len(h) > 0 and c == -u:
|
||||
if not used_flag:
|
||||
seq_item.addChild(used_item)
|
||||
used_flag = True
|
||||
used_item.addChild(item)
|
||||
else:
|
||||
seq_item.addChild(item)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue