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"
|
||||
self.activeFilter = (1, category)
|
||||
if category == "":
|
||||
listedDesktopFiles = []
|
||||
for i in self.applicationsBox.get_children():
|
||||
if not i.desktop_file_path in listedDesktopFiles:
|
||||
listedDesktopFiles.append( i.desktop_file_path )
|
||||
i.show_all()
|
||||
else:
|
||||
for i in self.applicationsBox.get_children():
|
||||
i.filterCategory( category )
|
||||
i.hide()
|
||||
else:
|
||||
for i in self.applicationsBox.get_children():
|
||||
i.filterCategory( category )
|
||||
|
||||
@ -1687,6 +1690,7 @@ class pluginclass( object ):
|
||||
item["button"].filterText( self.activeFilter[1] )
|
||||
else:
|
||||
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"] ) )
|
||||
self.applicationList.append( item )
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user