[gnome-shell/wip/carlosg/less-get-all-calls: 61/61] appDisplay: Use GAppInfo list from ShellAppSystem
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/less-get-all-calls: 61/61] appDisplay: Use GAppInfo list from ShellAppSystem
- Date: Sat, 26 Jan 2019 13:32:59 +0000 (UTC)
commit a21ffc576360ebf22502f1bc9fd20d7b380059e4
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Dec 19 13:26:54 2018 +0100
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.
js/ui/appDisplay.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js
index 92d7c4fec..18d41c7fc 100644
--- a/js/ui/appDisplay.js
+++ b/js/ui/appDisplay.js
@@ -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_all_apps().filter(appInfo => {
try {
let id = appInfo.get_id(); // catch invalid file encodings
} catch(e) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]