folderIcon: Update folder icon after dropping

After dropping an application into the folder icon, the
list of applications is updated but the folder icon itself
is not.

Introduce BaseIcon.update() and call it from FolderIcon
when redisplaying.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/664
This commit is contained in:
Georges Basile Stavracas Neto
2019-06-28 19:49:18 -03:00
parent 09d5f0779d
commit 5dfa620f86
2 changed files with 5 additions and 0 deletions

View File

@ -1331,6 +1331,7 @@ var FolderIcon = class FolderIcon {
_redisplay() {
this._updateName();
this.actor.visible = this.view.getAllItems().length > 0;
this.icon.update();
this.emit('apps-changed');
}