Loading add_to_handy_menu.py +7 −1 Original line number Diff line number Diff line Loading @@ -43,10 +43,16 @@ def add_to_handymenu(user, cmd, category): lastId = max(app['id'], lastId) if(app['name'] == category): for launcher in app['apps']: if(launcher['Exec'] == cmd['Exec']): if(launcher['cmd'] == cmd['cmd']): alreadyIn = True if(not alreadyIn): app['apps'] += [cmd] else: print("The command '{cmd}' is already in {category} under the name : '{name}'".format( cmd=cmd['cmd'], category=category, name=cmd['name'] )) found = True if(not found): Loading Loading
add_to_handy_menu.py +7 −1 Original line number Diff line number Diff line Loading @@ -43,10 +43,16 @@ def add_to_handymenu(user, cmd, category): lastId = max(app['id'], lastId) if(app['name'] == category): for launcher in app['apps']: if(launcher['Exec'] == cmd['Exec']): if(launcher['cmd'] == cmd['cmd']): alreadyIn = True if(not alreadyIn): app['apps'] += [cmd] else: print("The command '{cmd}' is already in {category} under the name : '{name}'".format( cmd=cmd['cmd'], category=category, name=cmd['name'] )) found = True if(not found): Loading