animation: Disable spinner animations when actor is destroyed
There's nothing to animate anymore, just a source for warnings when trying to access a destroyed object. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/362
This commit is contained in:
parent
9dc3b73ef9
commit
edbb204332
@ -104,6 +104,11 @@ var Spinner = new Lang.Class({
|
|||||||
this._animate = animate;
|
this._animate = animate;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_onDestroy() {
|
||||||
|
this._animate = false;
|
||||||
|
this.parent();
|
||||||
|
},
|
||||||
|
|
||||||
play() {
|
play() {
|
||||||
Tweener.removeTweens(this.actor);
|
Tweener.removeTweens(this.actor);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user