Fixed search myaddresses
This commit is contained in:
parent
9f0eb0a24e
commit
3691f22188
|
@ -78,9 +78,9 @@ class Random(Screen):
|
||||||
"""reseting spinner address and UI"""
|
"""reseting spinner address and UI"""
|
||||||
addresses = [addr for addr in BMConfigParser().addresses()
|
addresses = [addr for addr in BMConfigParser().addresses()
|
||||||
if BMConfigParser().get(str(addr), 'enabled') == 'true']
|
if BMConfigParser().get(str(addr), 'enabled') == 'true']
|
||||||
self.manager.parent.ids.content_drawer.ids.btn.values = []
|
self.manager.parent.ids.content_drawer.ids.identity_dropdown.values = []
|
||||||
self.manager.parent.ids.sc3.children[1].ids.btn.values = []
|
self.manager.parent.ids.sc3.children[1].ids.btn.values = []
|
||||||
self.manager.parent.ids.content_drawer.ids.btn.values = addresses
|
self.manager.parent.ids.content_drawer.ids.identity_dropdown.values = addresses
|
||||||
self.manager.parent.ids.sc3.children[1].ids.btn.values = addresses
|
self.manager.parent.ids.sc3.children[1].ids.btn.values = addresses
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
|
@ -225,10 +225,10 @@ class MyAddress(Screen, HelperMyAddress):
|
||||||
def filter_address(address):
|
def filter_address(address):
|
||||||
"""Method will filter the my address list data"""
|
"""Method will filter the my address list data"""
|
||||||
# import pdb; pdb.set_trace()
|
# import pdb; pdb.set_trace()
|
||||||
searched_text = MyAddress().kivy_state.searcing_text.lower()
|
from kivy.app import App
|
||||||
if BMConfigParser().search_addresses(address, searched_text):
|
searched_text = App.get_running_app().kivy_state_obj.searcing_text.lower()
|
||||||
return True
|
# if BMConfigParser().search_addresses(address, searched_text):
|
||||||
return False
|
return bool(BMConfigParser().search_addresses(address, searched_text))
|
||||||
# if [x for x in [BMConfigParser().get(address, 'label').lower(), address.lower()] if (state.searcing_text).lower() in x]:
|
# if [x for x in [BMConfigParser().get(address, 'label').lower(), address.lower()] if (state.searcing_text).lower() in x]:
|
||||||
|
|
||||||
def disable_address_ui(self, address, instance):
|
def disable_address_ui(self, address, instance):
|
||||||
|
|
Reference in New Issue
Block a user