mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 15:21:52 +01:00
Fixed Duplication on the NonSteamLaunchers.sh
This commit is contained in:
parent
fe7d036354
commit
274acc8e7e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user