create profile screen, main screen opens now
This commit is contained in:
@ -81,6 +81,7 @@ class BaseContact:
|
||||
"""
|
||||
Tries to load avatar of contact or uses default avatar
|
||||
"""
|
||||
return
|
||||
prefix = ProfileManager.get_path() + 'avatars/'
|
||||
avatar_path = prefix + '{}.png'.format(self._tox_id[:TOX_PUBLIC_KEY_SIZE * 2])
|
||||
if not os.path.isfile(avatar_path) or not os.path.getsize(avatar_path): # load default image
|
||||
|
@ -39,8 +39,7 @@ class Profile(basecontact.BaseContact):
|
||||
self._load_history = True
|
||||
self._waiting_for_reconnection = False
|
||||
self._factory = items_factory.ItemsFactory(self._screen.friends_list, self._messages)
|
||||
settings = Settings.get_instance()
|
||||
self._show_avatars = settings['show_avatars']
|
||||
#self._show_avatars = settings['show_avatars']
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user