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
No known key found for this signature in database
GPG Key ID: 886C17EE170D1385
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');
}

View File

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