create profile screen, main screen opens now

This commit is contained in:
ingvar1995 2018-04-16 23:35:55 +03:00
parent 85467e1885
commit 91d3f885c0
15 changed files with 286 additions and 118 deletions

View file

@ -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

View file

@ -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']
# -----------------------------------------------------------------------------------------------------------------