Avoid duplicating most used applications in the AppDisplay cache
All used applications should be in the database from the menus anyways.
This commit is contained in:
parent
b92263e80c
commit
04fbaf4f27
@ -344,15 +344,6 @@ AppDisplay.prototype = {
|
|||||||
this._addAppForId(appId);
|
this._addAppForId(appId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Some applications, such as Evince, might not be in the menus,
|
|
||||||
// but might be returned by the applications monitor as most used
|
|
||||||
// applications, in which case we include them.
|
|
||||||
let mostUsedAppInfos = AppInfo.getMostUsedApps(MAX_ITEMS);
|
|
||||||
for (let i = 0; i < mostUsedAppInfos.length; i++) {
|
|
||||||
let appInfo = mostUsedAppInfos[i];
|
|
||||||
this._addApp(appInfo);
|
|
||||||
}
|
|
||||||
|
|
||||||
this._appsStale = false;
|
this._appsStale = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user