fixed search enter button extra load issue

This commit is contained in:
navjot 2019-12-18 20:02:03 +05:30
parent c98d1a70f4
commit 55a7a96e8c
No known key found for this signature in database
GPG Key ID: 9EE70AFD71357F1C

View File

@ -1432,8 +1432,8 @@ class NavigateApp(App): # pylint: disable=too-many-public-methods
self.root.ids.scr_mngr.transition.direction = 'right' self.root.ids.scr_mngr.transition.direction = 'right'
self.root.ids.scr_mngr.transition.bind(on_complete=self.reset) self.root.ids.scr_mngr.transition.bind(on_complete=self.reset)
return True return True
elif key == 13: elif key == 13 and state.searcing_text:
if state.search_screen == 'inbox' and state.searcing_text: if state.search_screen == 'inbox':
self.root.ids.sc1.children[1].active = True self.root.ids.sc1.children[1].active = True
Clock.schedule_once(self.search_callback, 0.5) Clock.schedule_once(self.search_callback, 0.5)
elif state.search_screen == 'addressbook': elif state.search_screen == 'addressbook':