Fixed issue not adding web links if there was no real launcher

This commit is contained in:
sysmoon14 2024-02-09 14:57:42 +00:00 committed by GitHub
parent 3b76cc8a48
commit 77e73e9b18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -428,6 +428,7 @@ for launcher_name, appid in app_ids.items():
print(f"The app ID for {launcher_name} is {appid}") print(f"The app ID for {launcher_name} is {appid}")
# Get the app ID for the first launcher that the user chose to install # Get the app ID for the first launcher that the user chose to install
if app_ids:
appid = app_ids.get(launcher_name) appid = app_ids.get(launcher_name)
@ -480,7 +481,7 @@ for launcher_name, folder in folder_names.items():
# Check if the NonSteamLaunchers folder exists # Check if the NonSteamLaunchers folder exists
if os.path.exists(os.path.join(compatdata_dir, 'NonSteamLaunchers')): if app_ids and os.path.exists(os.path.join(compatdata_dir, 'NonSteamLaunchers')):
# Get the first app ID from the app_ids list # Get the first app ID from the app_ids list
first_app_id = next(iter(app_ids.values())) first_app_id = next(iter(app_ids.values()))