Fix game sorting, add extra 🍝

This commit is contained in:
kramo
2023-08-13 15:09:44 +02:00
parent 9670a98246
commit 21952e635a
9 changed files with 22 additions and 11 deletions

View File

@@ -153,7 +153,13 @@ class CartridgesApplication(Adw.Application):
shared.store.add_game(game, {"skip_save": True})
def get_source_name(self, source_id):
return globals()[f'{source_id.split("_")[0].title()}Source'].name
if source_id == "all":
name = _("All Games")
elif source_id == "imported":
name = _("Added")
else:
name = globals()[f'{source_id.split("_")[0].title()}Source'].name
return name
def on_about_action(self, *_args):
# Get the debug info from the log files