summaryrefslogtreecommitdiff
path: root/src/frontend/gui
diff options
context:
space:
mode:
authorbionel <ionel.busuioc@gmail.com>2017-09-20 22:23:31 +0300
committerbionel <ionel.busuioc@gmail.com>2017-09-20 22:23:31 +0300
commitd07d6aeb724100bca26acb7606bbbc0d5d90b26a (patch)
treea79133c5c42c4b9e58582d41a84a259178063ab1 /src/frontend/gui
parent887628682f14012737005d6c1696c09899386c71 (diff)
improve filters, add Available
Diffstat (limited to 'src/frontend/gui')
-rwxr-xr-xsrc/frontend/gui/sisyphus-gui.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/frontend/gui/sisyphus-gui.py b/src/frontend/gui/sisyphus-gui.py
index 65767d0..a33e3c8 100755
--- a/src/frontend/gui/sisyphus-gui.py
+++ b/src/frontend/gui/sisyphus-gui.py
@@ -23,7 +23,8 @@ class Sisyphus(QtWidgets.QMainWindow):
self.selectfield.currentIndexChanged.connect(self.setSearchField)
self.SEARCHFILTERS = OrderedDict ([
- ('*', ''),
+ ('All', ''),
+ ('Available', 'AND iv IS NULL'),
('Installed', 'AND iv IS NOT NULL'),
('Upgradable', 'AND iv < av'),
('Downgradable', 'AND iv > av')
@@ -34,7 +35,7 @@ class Sisyphus(QtWidgets.QMainWindow):
Sisyphus.SEARCHTERM = "'%%'" # defaults to all
Sisyphus.SEARCHFIELD = self.SEARCHFIELDS['Name'] # defaults to package name
- Sisyphus.SEARCHFILTER = self.SEARCHFILTERS['*'] # defaults to any
+ Sisyphus.SEARCHFILTER = self.SEARCHFILTERS['All'] # defaults to any
self.loadDatabase(Sisyphus.SEARCHFIELD,Sisyphus.SEARCHTERM,Sisyphus.SEARCHFILTER)
self.input.textEdited.connect(self.filterDatabase)