Browse Source

Add missing parentheses

Fixes #25.
pull/28/head 2.1
George Vlahavas 2 years ago
parent
commit
04e2b9cb93
  1. 2
      src/xdgmenumaker

2
src/xdgmenumaker

@ -396,7 +396,7 @@ def get_entry_info(desktopfile, ico_paths=True):
# OnlyShowIn but it might be worth using some extra logic here.
# http://standards.freedesktop.org/menu-spec/latest/apb.html
if (onlyshowin != [] and not (desktop.lower() in (name.lower() for name in onlyshowin))) \
or (desktop.lower() in (name.lower for name in notshowin)) \
or (desktop.lower() in (name.lower() for name in notshowin)) \
or hidden or nodisplay:
return None

Loading…
Cancel
Save