--- a/src/desktop/unity-lens-recoll/bin/unity-recoll-daemon.in
+++ b/src/desktop/unity-lens-recoll/bin/unity-recoll-daemon.in
@@ -62,23 +62,18 @@
# Populate filters
- filters = []
-
# We should get the categories from the config but the python
# module currently has no code for this. CheckOption or RadioOption?
filter = Unity.RadioOptionFilter.new("rclcat", "Category",
Gio.ThemedIcon.new("input-keyboard-symbolic"), False)
-
filter.add_option("text", "Text", None);
filter.add_option("spreadsheet", "Spreadsheet", None);
filter.add_option("presentation", "Presentation", None);
filter.add_option("media", "Media", None);
filter.add_option("message", "Message", None);
filter.add_option("other", "Other", None);
+ lens.props.filters = [filter]
- filters.append(filter)
-
- lens.props.filters = filters
return lens
lens = create_lens ()