appDisplay: Use GAppInfo list from ShellAppSystem

It is now cached there, so the number of g_app_info_get_all() calls
is reduced to one per change.
This commit is contained in:
Carlos Garnacho 2018-12-19 13:26:54 +01:00
parent 69ad75cf48
commit 794a056819

View File

@ -492,7 +492,7 @@ var AllView = class AllView extends BaseAppView {
}
_loadApps() {
this._appInfoList = Gio.AppInfo.get_all().filter(appInfo => {
this._appInfoList = Shell.AppSystem.get_default().get_installed().filter(appInfo => {
try {
let id = appInfo.get_id(); // catch invalid file encodings
} catch(e) {