AppIcon: Nullify _draggable if available on destruction
When an AppIcon actor is destroyed we try to unset a non-existent draggable property. Fix the typo, doing this even if we're not currently in a drag operation. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/677
This commit is contained in:
parent
35dbc3fcc9
commit
209d332a30
@ -1897,9 +1897,10 @@ var AppIcon = class AppIcon {
|
|||||||
}
|
}
|
||||||
if (this._stateChangedId > 0)
|
if (this._stateChangedId > 0)
|
||||||
this.app.disconnect(this._stateChangedId);
|
this.app.disconnect(this._stateChangedId);
|
||||||
if (this._draggable && this._dragging) {
|
if (this._draggable) {
|
||||||
|
if (this._dragging)
|
||||||
Main.overview.endItemDrag(this);
|
Main.overview.endItemDrag(this);
|
||||||
this.draggable = null;
|
this._draggable = null;
|
||||||
}
|
}
|
||||||
this._stateChangedId = 0;
|
this._stateChangedId = 0;
|
||||||
this._removeMenuTimeout();
|
this._removeMenuTimeout();
|
||||||
|
Loading…
Reference in New Issue
Block a user