panel: Remove a bit of duplicated code
The play() method does what we want here.
This commit is contained in:
parent
056cfc9dc6
commit
7bd7b53845
@ -132,10 +132,8 @@ const AnimatedIcon = new Lang.Class({
|
|||||||
_animationsLoaded: function() {
|
_animationsLoaded: function() {
|
||||||
this._isLoaded = true;
|
this._isLoaded = true;
|
||||||
|
|
||||||
if (this._isPlaying) {
|
if (this._isPlaying)
|
||||||
this._showFrame(0);
|
this.play();
|
||||||
this._timeoutId = Mainloop.timeout_add(ANIMATED_ICON_UPDATE_TIMEOUT, Lang.bind(this, this._update));
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
_onDestroy: function() {
|
_onDestroy: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user