mirror of
https://github.com/moraroy/NonSteamLaunchers-On-Steam-Deck.git
synced 2024-12-21 07:11:52 +01:00
check app name
This commit is contained in:
parent
3d2d808a03
commit
ea47652741
@ -2765,9 +2765,10 @@ def create_new_entry(shortcutdirectory, appname, launchoptions, startingdir):
|
||||
}
|
||||
}
|
||||
|
||||
# Check if an entry with the same appid already exists
|
||||
# Check if an entry with the same appid and appname already exists
|
||||
for key in shortcuts['shortcuts'].keys():
|
||||
if shortcuts['shortcuts'][key]['appid'] == new_entry['appid']:
|
||||
if (shortcuts['shortcuts'][key]['appid'] == new_entry['appid'] and
|
||||
shortcuts['shortcuts'][key]['appname'] == new_entry['appname']):
|
||||
# A duplicate entry exists, so don't add the new entry
|
||||
return
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user