mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
Fix getMostUsedApps to avoid returning duplicate items
This commit is contained in:
parent
d588b083d9
commit
c577951ec9
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue