[gnome-shell/overlay-design02] Fix getMostUsedApps to avoid returning duplicate items
- From: Colin Walters <walters src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-shell/overlay-design02] Fix getMostUsedApps to avoid returning duplicate items
- Date: Fri, 26 Jun 2009 22:39:32 +0000 (UTC)
commit c577951ec92795b9ddb04e22af573d2bb3f2f390
Author: Colin Walters <walters verbum org>
Date: Fri Jun 26 18:30:28 2009 -0400
Fix getMostUsedApps to avoid returning duplicate items
js/misc/appInfo.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/js/misc/appInfo.js b/js/misc/appInfo.js
index 61b36bd..67554f3 100644
--- a/js/misc/appInfo.js
+++ b/js/misc/appInfo.js
@@ -98,6 +98,9 @@ function getMostUsedApps(count) {
let favs = getFavorites();
// Fill the list with default applications it's not full yet
for (let i = 0; i < favs.length && favs.length <= count; i++) {
+ let appId = favs[i].appId;
+ if (alreadyAdded[appId])
+ continue;
matches.push(favs[i]);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]