|
|
|
@ -95,15 +95,15 @@ class AddressList(MyTreeWidget): |
|
|
|
self.clear() |
|
|
|
self.clear() |
|
|
|
for address in addr_list: |
|
|
|
for address in addr_list: |
|
|
|
num = len(self.wallet.get_address_history(address)) |
|
|
|
num = len(self.wallet.get_address_history(address)) |
|
|
|
is_used = self.wallet.is_used(address) |
|
|
|
|
|
|
|
label = self.wallet.labels.get(address, '') |
|
|
|
label = self.wallet.labels.get(address, '') |
|
|
|
c, u, x = self.wallet.get_addr_balance(address) |
|
|
|
c, u, x = self.wallet.get_addr_balance(address) |
|
|
|
balance = c + u + x |
|
|
|
balance = c + u + x |
|
|
|
if self.show_used == 1 and (balance or is_used): |
|
|
|
is_used_and_empty = self.wallet.is_used(address) and balance == 0 |
|
|
|
|
|
|
|
if self.show_used == 1 and (balance or is_used_and_empty): |
|
|
|
continue |
|
|
|
continue |
|
|
|
if self.show_used == 2 and balance == 0: |
|
|
|
if self.show_used == 2 and balance == 0: |
|
|
|
continue |
|
|
|
continue |
|
|
|
if self.show_used == 3 and not is_used: |
|
|
|
if self.show_used == 3 and not is_used_and_empty: |
|
|
|
continue |
|
|
|
continue |
|
|
|
balance_text = self.parent.format_amount(balance, whitespaces=True) |
|
|
|
balance_text = self.parent.format_amount(balance, whitespaces=True) |
|
|
|
fx = self.parent.fx |
|
|
|
fx = self.parent.fx |
|
|
|
|