mirror of
https://github.com/oleid/gnome-shell-teatime.git
synced 2022-04-29 18:53:50 +00:00
Merge pull request #33 from mkoura/remove_old_countdown
Remove old countdown when new one is selected.
This commit is contained in:
commit
a4fba500e7
@ -297,6 +297,7 @@ const TeaTime = new Lang.Class({
|
|||||||
this.actor.add_actor( this._bGraphicalCountdown
|
this.actor.add_actor( this._bGraphicalCountdown
|
||||||
? this._graphicalTimer : this._textualTimer);
|
? this._graphicalTimer : this._textualTimer);
|
||||||
|
|
||||||
|
if (this._idleTimeout != null) Mainloop.source_remove(this._idleTimeout);
|
||||||
this._idleTimeout = Mainloop.timeout_add_seconds(dt, Lang.bind(this, this._doCountdown));
|
this._idleTimeout = Mainloop.timeout_add_seconds(dt, Lang.bind(this, this._doCountdown));
|
||||||
},
|
},
|
||||||
_getRemainingSec: function() {
|
_getRemainingSec: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user