From ba8af9310f2843afd56a41db2618c37a6eab06b1 Mon Sep 17 00:00:00 2001 From: SomberNight Date: Sat, 19 Jun 2021 15:44:01 +0200 Subject: [PATCH] kivy addresses list: add "funded or unused" filter option note: "Funded or Unused" shortened to "Funded|Unused" to save horizontal space --- electrum/gui/kivy/uix/dialogs/addresses.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/electrum/gui/kivy/uix/dialogs/addresses.py b/electrum/gui/kivy/uix/dialogs/addresses.py index 5029ad0fe..e6648c8a5 100644 --- a/electrum/gui/kivy/uix/dialogs/addresses.py +++ b/electrum/gui/kivy/uix/dialogs/addresses.py @@ -102,9 +102,9 @@ Builder.load_string(''' spacing: '5dp' AddressButton: id: search - text: {0:_('All'), 1:_('Unused'), 2:_('Funded'), 3:_('Used')}[root.show_used] + text: {0:_('All'), 1:_('Unused'), 2:_('Funded'), 3:_('Used'), 4:(_('Funded')+'|'+_('Unused'))}[root.show_used] on_release: - root.show_used = (root.show_used + 1) % 4 + root.show_used = (root.show_used + 1) % 5 Clock.schedule_once(lambda dt: root.update()) AddressFilter: opacity: 1 @@ -271,6 +271,8 @@ class AddressesDialog(Factory.Popup): continue if self.show_used == 3 and not is_used_and_empty: continue + if self.show_used == 4 and is_used_and_empty: + continue card = self.get_card(address, balance, is_used_and_empty, label) if search and not self.ext_search(card, search): continue