From 22f034db0eb65127a21213e8ead2daf3f558bf5b Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Thu, 22 May 2014 11:39:17 +0100 Subject: [PATCH] Applications: Don't show duplicates by default (prior to applying filters) --- usr/lib/linuxmint/mintMenu/plugins/applications.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/applications.py b/usr/lib/linuxmint/mintMenu/plugins/applications.py index 72d6ad7..fd62351 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/applications.py +++ b/usr/lib/linuxmint/mintMenu/plugins/applications.py @@ -1754,9 +1754,16 @@ class pluginclass( object ): item["button"].destroy() - sortedApplicationList.sort() + 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