From 5bc55925ef2faeb02edea375b637e525b06ea88d Mon Sep 17 00:00:00 2001 From: monsta Date: Mon, 28 Jul 2014 11:21:20 +0400 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..6437ec7 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