From f2d36181261af76193a30029ecb5504193fe768d Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Fri, 1 Apr 2022 13:12:57 +0530 Subject: [PATCH] Set Draft Count staticmethod --- src/bitmessagekivy/baseclass/draft.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bitmessagekivy/baseclass/draft.py b/src/bitmessagekivy/baseclass/draft.py index 2b22b108..8443461d 100644 --- a/src/bitmessagekivy/baseclass/draft.py +++ b/src/bitmessagekivy/baseclass/draft.py @@ -80,7 +80,8 @@ class Draft(Screen, HelperDraft): xAddress, self.account, "draft", where, what, False, start_indx, end_indx) - def set_draftCnt(self, Count): # pylint: disable=no-self-use + @staticmethod + def set_draftCnt(Count): """This method set the count of draft mails""" draftCnt_obj = state.kivyapp.root.ids.content_drawer.ids.draft_cnt draftCnt_obj.ids.badge_txt.text = showLimitedCnt(int(Count))