mpybit[update draft kivy state variable]&add delte inside helper_sent
This commit is contained in:
parent
aa93bdcfde
commit
34dbe5fe18
|
@ -683,7 +683,7 @@ class NavigateApp(MDApp):
|
||||||
" where fromaddress = '{0}' and folder = 'trash' )"
|
" where fromaddress = '{0}' and folder = 'trash' )"
|
||||||
"+(SELECT count(*) FROM inbox where toaddress = '{0}' and"
|
"+(SELECT count(*) FROM inbox where toaddress = '{0}' and"
|
||||||
" folder = 'trash') AS SumCount".format(state.association))[0][0])
|
" folder = 'trash') AS SumCount".format(state.association))[0][0])
|
||||||
state.draft_count = str(sqlQuery(
|
self.kivy_state_obj.draft_count = str(sqlQuery(
|
||||||
"SELECT COUNT(*) FROM sent WHERE fromaddress = '{}' and"
|
"SELECT COUNT(*) FROM sent WHERE fromaddress = '{}' and"
|
||||||
" folder = 'draft' ;".format(state.association))[0][0])
|
" folder = 'draft' ;".format(state.association))[0][0])
|
||||||
state.all_count = str(int(state.sent_count) + int(state.inbox_count))
|
state.all_count = str(int(state.sent_count) + int(state.inbox_count))
|
||||||
|
@ -691,7 +691,7 @@ class NavigateApp(MDApp):
|
||||||
msg_counter_objs.send_cnt.badge_text = state.sent_count
|
msg_counter_objs.send_cnt.badge_text = state.sent_count
|
||||||
msg_counter_objs.inbox_cnt.badge_text = state.inbox_count
|
msg_counter_objs.inbox_cnt.badge_text = state.inbox_count
|
||||||
msg_counter_objs.trash_cnt.badge_text = state.trash_count
|
msg_counter_objs.trash_cnt.badge_text = state.trash_count
|
||||||
msg_counter_objs.draft_cnt.badge_text = state.draft_count
|
msg_counter_objs.draft_cnt.badge_text = self.kivy_state_obj.draft_count
|
||||||
msg_counter_objs.allmail_cnt.badge_text = state.all_count
|
msg_counter_objs.allmail_cnt.badge_text = state.all_count
|
||||||
|
|
||||||
def on_start(self):
|
def on_start(self):
|
||||||
|
|
Reference in New Issue
Block a user