Fix getMostUsedApps to avoid returning duplicate items

This commit is contained in:
Colin Walters 2009-06-26 18:30:28 -04:00
parent d588b083d9
commit c577951ec9

View File

@ -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]);
}