mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
baseAppView: Destroy icon when removing
We cannot rely on the garbage collector to do that in a timely manner, so destroy it explicitly. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/841
This commit is contained in:
parent
cae69b3a88
commit
bfc7c1cd65
1 changed files with 3 additions and 2 deletions
|
|
@ -186,10 +186,11 @@ var BaseAppView = GObject.registerClass({
|
|||
// Remove old app icons
|
||||
removedApps.forEach(icon => {
|
||||
let iconIndex = this._allItems.indexOf(icon);
|
||||
let id = icon.id;
|
||||
|
||||
this._allItems.splice(iconIndex, 1);
|
||||
this._grid.removeItem(icon);
|
||||
delete this._items[icon.id];
|
||||
icon.destroy();
|
||||
delete this._items[id];
|
||||
});
|
||||
|
||||
// Add new app icons
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue