From b8c39e8dce80c96ef9a98127258f639d387c0d5c Mon Sep 17 00:00:00 2001 From: shekhar-cis Date: Mon, 20 Jun 2022 20:07:58 +0530 Subject: [PATCH] Refactor Addressbook --- src/bitmessagekivy/baseclass/addressbook.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/bitmessagekivy/baseclass/addressbook.py b/src/bitmessagekivy/baseclass/addressbook.py index 60b22418..6aec8eef 100644 --- a/src/bitmessagekivy/baseclass/addressbook.py +++ b/src/bitmessagekivy/baseclass/addressbook.py @@ -20,8 +20,6 @@ from kivy.properties import ( from kivy.uix.screenmanager import Screen from kivy.app import App -import state - from bitmessagekivy.get_platform import platform from bitmessagekivy import kivy_helper_search from bitmessagekivy.baseclass.common import ( @@ -86,7 +84,7 @@ class AddressBook(Screen, HelperAddressBook): listItem.theme_text_color = "Custom" listItem.text_color = ThemeClsColor image = os.path.join( - state.imageDir, "text_images", "{}.png".format(avatarImageFirstLetter(item[0].strip())) + self.kivy_state.imageDir, "text_images", "{}.png".format(avatarImageFirstLetter(item[0].strip())) ) message_row.ids.avater_img.source = image listItem.bind(on_release=partial(