Fix getMostUsedApps to avoid returning duplicate items
This commit is contained in:
parent
d588b083d9
commit
c577951ec9
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user