Changeset 6596


Ignore:
Timestamp:
Jan 15, 2018, 5:55:28 PM (21 months ago)
Author:
hectorgh
Message:

making sure there is at least 3 characters when filtering zmds using the search box

Location:
zero-center/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • zero-center/trunk/fuentes/debian/changelog

    r6571 r6596  
     1zero-center (1:2.13) xenial; urgency=high
     2
     3  * Making sure there is at least 3 characters to filter zmds when searching.
     4
     5 -- Hector Garcia Huerta <hectorgh@gmail.com>  Mon, 15 Jan 2018 17:54:09 +0100
     6
    17zero-center (1:2.12) xenial; urgency=high
    28
  • zero-center/trunk/fuentes/install-files/usr/share/zero-center/zero-center.py

    r6571 r6596  
    10401040                                        if self.check_app_groups(app,verbose):
    10411041
    1042                                                 search_txt=self.search_entry.get_text().lower()
    1043 
    1044                                                 if search_txt not in app["ID"] and search_txt not in self.get_translation(app["Category"]).lower() and search_txt not in self.get_name(app).lower():
     1042                                                search_txt=self.search_entry.get_text().lower().strip()
     1043
     1044                                                if search_txt not in app["ID"] and search_txt not in self.get_translation(app["Category"]).lower() and search_txt not in self.get_name(app).lower() and len(search_txt)>2:
    10451045                                                        continue
    10461046                                                button=Gtk.Button()
Note: See TracChangeset for help on using the changeset viewer.