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
c577951ec9
commit
340fbfe943
@ -343,15 +343,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