appDisplay: Support the 'excluded-apps' key for app folders

https://bugzilla.gnome.org/show_bug.cgi?id=723179
This commit is contained in:
Jasper St. Pierre 2014-01-28 12:27:22 -05:00
parent bb8fa61cb4
commit bb8397b9b1

View File

@ -1075,8 +1075,12 @@ const FolderIcon = new Lang.Class({
this.view.removeAll();
let excludedApps = this._folder.get_strv('excluded-apps');
let appSys = Shell.AppSystem.get_default();
let addAppId = (function addAppId(appId) {
if (excludedApps.indexOf(appId) >= 0)
return;
let app = appSys.lookup_app(appId);
if (!app)
return;