Patch for bug #809104 (https://bugs.launchpad.net/linuxmint/+bug/809104)
This commit is contained in:
parent
918c6fbed3
commit
2d4f2754ed
@ -821,11 +821,14 @@ class pluginclass( object ):
|
|||||||
#print "CATFILTER"
|
#print "CATFILTER"
|
||||||
self.activeFilter = (1, category)
|
self.activeFilter = (1, category)
|
||||||
if category == "":
|
if category == "":
|
||||||
|
listedDesktopFiles = []
|
||||||
for i in self.applicationsBox.get_children():
|
for i in self.applicationsBox.get_children():
|
||||||
|
if not i.desktop_file_path in listedDesktopFiles:
|
||||||
|
listedDesktopFiles.append( i.desktop_file_path )
|
||||||
i.show_all()
|
i.show_all()
|
||||||
else:
|
else:
|
||||||
for i in self.applicationsBox.get_children():
|
i.hide()
|
||||||
i.filterCategory( category )
|
else:
|
||||||
for i in self.applicationsBox.get_children():
|
for i in self.applicationsBox.get_children():
|
||||||
i.filterCategory( category )
|
i.filterCategory( category )
|
||||||
|
|
||||||
@ -1687,6 +1690,7 @@ class pluginclass( object ):
|
|||||||
item["button"].filterText( self.activeFilter[1] )
|
item["button"].filterText( self.activeFilter[1] )
|
||||||
else:
|
else:
|
||||||
item["button"].filterCategory( self.activeFilter[1] )
|
item["button"].filterCategory( self.activeFilter[1] )
|
||||||
|
item["button"].desktop_file_path = item["entry"].get_desktop_file_path()
|
||||||
sortedApplicationList.append( ( item["button"].appName.upper(), item["button"] ) )
|
sortedApplicationList.append( ( item["button"].appName.upper(), item["button"] ) )
|
||||||
self.applicationList.append( item )
|
self.applicationList.append( item )
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user