appDisplay: Hide empty app folders

Trying to open an empty folder currently leaves the parent view in a
rather confused state. While we should look into fixing this in the
future, empty folders are not useful at all to begin with, so hide them.

https://bugzilla.gnome.org/show_bug.cgi?id=736910
This commit is contained in:
Florian Müllner 2014-09-18 15:33:13 +01:00
parent 9ad4070d58
commit 3ae45bddad

View File

@ -1267,6 +1267,7 @@ const FolderIcon = new Lang.Class({
addAppId(appInfo.get_id());
});
this.actor.visible = this.view.getAllItems().length > 0;
this.view.loadGrid();
this.emit('apps-changed');
},