From ec7f9bd56024cd3b4b3a19f785b39e7ed22b1ef9 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Sat, 8 Jul 2023 12:32:46 +0200 Subject: [PATCH] Fix globals() lookup --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index c29ee4d..8efdadf 100644 --- a/src/main.py +++ b/src/main.py @@ -146,7 +146,7 @@ class CartridgesApplication(Adw.Application): shared.store.add_game(game, {"skip_save": True}) def get_source_name(self, source_id): - return globals()[f"{source_id.title()}Source"].name + return globals()[f'{source_id.split("_")[0].title()}Source'].name def on_about_action(self, *_args): # Get the debug info from the log files