Fix globals() lookup

This commit is contained in:
kramo
2023-07-08 12:32:46 +02:00
parent 6db3557cff
commit ec7f9bd560

View File

@@ -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