appDisplay: Ignore the NoDisplay flag for directories
This makes us match the native app search. https://bugzilla.gnome.org/show_bug.cgi?id=698486
This commit is contained in:
parent
5d0d859a1f
commit
634a599db6
@ -61,7 +61,6 @@ function _loadCategory(dir, view) {
|
||||
view.addApp(app);
|
||||
} else if (nextType == GMenu.TreeItemType.DIRECTORY) {
|
||||
let itemDir = iter.get_directory();
|
||||
if (!itemDir.get_is_nodisplay())
|
||||
_loadCategory(itemDir, view);
|
||||
}
|
||||
}
|
||||
@ -827,8 +826,6 @@ const AppDisplay = new Lang.Class({
|
||||
while ((nextType = iter.next()) != GMenu.TreeItemType.INVALID) {
|
||||
if (nextType == GMenu.TreeItemType.DIRECTORY) {
|
||||
let dir = iter.get_directory();
|
||||
if (dir.get_is_nodisplay())
|
||||
continue;
|
||||
|
||||
if (folderCategories.indexOf(dir.get_menu_id()) != -1)
|
||||
view.addFolder(dir);
|
||||
|
Loading…
Reference in New Issue
Block a user