diff options
author | vg <vgm+dev@devys.org> | 2023-01-02 20:50:37 +0100 |
---|---|---|
committer | vg <vgm+dev@devys.org> | 2023-01-02 20:50:37 +0100 |
commit | 56b6b7de37e416ad87a8b2766ed0df4f13a67778 (patch) | |
tree | f997428e400fe99ea7aaed5dc2a4066ed5a82a76 | |
parent | 1c21b13b822de17533476bd12f6bee4d3ca24957 (diff) | |
download | gamechest-56b6b7de37e416ad87a8b2766ed0df4f13a67778.tar.gz gamechest-56b6b7de37e416ad87a8b2766ed0df4f13a67778.tar.bz2 gamechest-56b6b7de37e416ad87a8b2766ed0df4f13a67778.zip |
git-sync on dita
-rwxr-xr-x | pygame/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pygame/__init__.py b/pygame/__init__.py index c516008..4bbf096 100755 --- a/pygame/__init__.py +++ b/pygame/__init__.py @@ -200,7 +200,10 @@ class ProfileData(ObservedSubject): return self.profiledb.get_profiles()[self.current_profile_index]['name'] def get_current_profile_avatar(self): - return self.profiledb.get_profiles()[self.current_profile_index].get('avatar', None) + avatar = self.profiledb.get_profiles()[self.current_profile_index].get('avatar', None) + if avatar is None: + avatar = config.get_data_d() / 'asset/default_avatar.jpeg' + return avatar def get_current_display(self): return self.profiledb.get_profiles()[self.current_profile_index]['display'] |