appDisplay: Avoid using an undefined _swipeTracker
It might have been deleted already during shutdown by `_onDestroy()`. Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6512 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2693>
This commit is contained in:
parent
58af42caea
commit
b8013704cf
@ -1237,7 +1237,8 @@ var BaseAppView = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
vfunc_unmap() {
|
vfunc_unmap() {
|
||||||
this._swipeTracker.enabled = false;
|
if (this._swipeTracker)
|
||||||
|
this._swipeTracker.enabled = false;
|
||||||
this._disconnectDnD();
|
this._disconnectDnD();
|
||||||
super.vfunc_unmap();
|
super.vfunc_unmap();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user