Browse Source

No need to check for the right suffix twice

pull/1/merge
gapan 13 years ago
parent
commit
b911c027dc
  1. 7
      src/xdgmenumaker

7
src/xdgmenumaker

@ -211,10 +211,9 @@ def menu():
applist = []
for desktopfile in desktopfilelist():
try:
if desktopfile.endswith('.desktop'):
e = get_entry_info(desktopfile)
if e is not None:
applist.append(MenuEntry(e[0], e[1], e[2], e[3]))
e = get_entry_info(desktopfile)
if e is not None:
applist.append(MenuEntry(e[0], e[1], e[2], e[3]))
except exc.ParsingError:
pass

Loading…
Cancel
Save