AppDisplay/FrequentView: filter out hidden applications
Filter out all applications which have the NoDisplay, Hidden or Not/OnlyShowIn bits, as those are not meant to be launched directly. This also allows the user to filter apps from the frequent view using alacarte. https://bugzilla.gnome.org/show_bug.cgi?id=696949
This commit is contained in:
parent
30f1b8f02a
commit
58872d162b
@ -316,6 +316,8 @@ const FrequentView = new Lang.Class({
|
|||||||
loadApps: function() {
|
loadApps: function() {
|
||||||
let mostUsed = this._usage.get_most_used ("");
|
let mostUsed = this._usage.get_most_used ("");
|
||||||
for (let i = 0; i < mostUsed.length; i++) {
|
for (let i = 0; i < mostUsed.length; i++) {
|
||||||
|
if (!mostUsed[i].get_app_info().should_show())
|
||||||
|
continue;
|
||||||
let appIcon = new AppIcon(mostUsed[i]);
|
let appIcon = new AppIcon(mostUsed[i]);
|
||||||
this._grid.addItem(appIcon.actor, -1);
|
this._grid.addItem(appIcon.actor, -1);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user