create profile screen, main screen opens now
This commit is contained in:
parent
85467e1885
commit
91d3f885c0
15 changed files with 286 additions and 118 deletions
|
@ -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']
|
||||
|
||||
|
||||
# -----------------------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue