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:
parent
69ad75cf48
commit
794a056819
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user