mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 07:11:52 +01:00
Fixed issue not adding web links if there was no real launcher
This commit is contained in:
parent
3b76cc8a48
commit
77e73e9b18
@ -428,7 +428,8 @@ for launcher_name, appid in app_ids.items():
|
||||
print(f"The app ID for {launcher_name} is {appid}")
|
||||
|
||||
# Get the app ID for the first launcher that the user chose to install
|
||||
appid = app_ids.get(launcher_name)
|
||||
if app_ids:
|
||||
appid = app_ids.get(launcher_name)
|
||||
|
||||
|
||||
#Create User Friendly Symlinks for the launchers
|
||||
@ -480,7 +481,7 @@ for launcher_name, folder in folder_names.items():
|
||||
|
||||
|
||||
# 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
|
||||
first_app_id = next(iter(app_ids.values()))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user