mirror of https://github.com/espruino/BangleApps
ClockFace: set Bangle.CLOCK=1 before loading widgets
parent
a70f24ceae
commit
365b3859b3
|
@ -66,6 +66,7 @@ ClockFace.prototype.tick = function() {
|
||||||
};
|
};
|
||||||
|
|
||||||
ClockFace.prototype.start = function() {
|
ClockFace.prototype.start = function() {
|
||||||
|
Bangle.CLOCK = 1;
|
||||||
Bangle.loadWidgets();
|
Bangle.loadWidgets();
|
||||||
if (this.init) this.init.apply(this);
|
if (this.init) this.init.apply(this);
|
||||||
if (this._upDown) Bangle.setUI("clockupdown", d=>this._upDown.apply(this,[d]));
|
if (this._upDown) Bangle.setUI("clockupdown", d=>this._upDown.apply(this,[d]));
|
||||||
|
|
Loading…
Reference in New Issue