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/603
This commit is contained in:
Georges Basile Stavracas Neto 2019-06-28 19:49:18 -03:00
parent cc9f949b65
commit bb9f05843f
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385
2 changed files with 5 additions and 0 deletions

View File

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

View File

@ -142,6 +142,10 @@ class BaseIcon extends St.Bin {
// animating.
zoomOutActor(this.child);
}
update() {
this._createIconTexture(this.iconSize);
}
});
function clamp(value, min, max) {