Merge pull request #102 from monsta/patch-3

[Backports] Applications: Don't show duplicates by default (prior to applying filters)
This commit is contained in:
Clement Lefebvre 2014-11-08 13:47:51 +01:00
commit 5c3df9252d

View File

@ -1755,8 +1755,15 @@ class pluginclass( object ):
sortedApplicationList.sort()
launcherNames = [] # Keep track of launcher names so we don't add them twice in the list..
for item in sortedApplicationList:
self.applicationsBox.pack_start( item[1], False, False, 0 )
launcherName = item[0]
button = item[1]
self.applicationsBox.pack_start( button, False, False, 0 )
if launcherName in launcherNames:
button.hide()
else:
launcherNames.append(launcherName)
self.rebuildLock = False