mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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
1 changed files with 5 additions and 0 deletions
|
|
@ -104,6 +104,11 @@ var Spinner = new Lang.Class({
|
|||
this._animate = animate;
|
||||
},
|
||||
|
||||
_onDestroy() {
|
||||
this._animate = false;
|
||||
this.parent();
|
||||
},
|
||||
|
||||
play() {
|
||||
Tweener.removeTweens(this.actor);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue