Fixed Duplication on the NonSteamLaunchers.sh

This commit is contained in:
Roy 2024-01-21 00:04:32 -08:00 committed by GitHub
parent fe7d036354
commit 274acc8e7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2858,6 +2858,12 @@ def create_new_entry(shortcutdirectory, appname, launchoptions, startingdir):
}
}
# Check if an entry with the same appid already exists
for key in shortcuts['shortcuts'].keys():
if shortcuts['shortcuts'][key]['appid'] == new_entry['appid']:
# A duplicate entry exists, so don't add the new entry
return
# Add the new entry to the shortcuts dictionary
entry_exists = False