summaryrefslogtreecommitdiffstats
path: root/pygame/__init__.py
diff options
context:
space:
mode:
authorvg <vgm+dev@devys.org>2023-01-02 20:50:37 +0100
committervg <vgm+dev@devys.org>2023-01-02 20:50:37 +0100
commit56b6b7de37e416ad87a8b2766ed0df4f13a67778 (patch)
treef997428e400fe99ea7aaed5dc2a4066ed5a82a76 /pygame/__init__.py
parent1c21b13b822de17533476bd12f6bee4d3ca24957 (diff)
downloadgamechest-56b6b7de37e416ad87a8b2766ed0df4f13a67778.tar.gz
gamechest-56b6b7de37e416ad87a8b2766ed0df4f13a67778.tar.bz2
gamechest-56b6b7de37e416ad87a8b2766ed0df4f13a67778.zip
git-sync on dita
Diffstat (limited to 'pygame/__init__.py')
-rwxr-xr-xpygame/__init__.py5
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']