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() {
|
||||
this._isLoaded = true;
|
||||
|
||||
if (this._isPlaying) {
|
||||
this._showFrame(0);
|
||||
this._timeoutId = Mainloop.timeout_add(ANIMATED_ICON_UPDATE_TIMEOUT, Lang.bind(this, this._update));
|
||||
}
|
||||
if (this._isPlaying)
|
||||
this.play();
|
||||
},
|
||||
|
||||
_onDestroy: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user