ClockFace: set Bangle.CLOCK=1 before loading widgets

pull/1864/head
Richard de Boer 2022-05-22 19:59:17 +02:00
parent a70f24ceae
commit 365b3859b3
No known key found for this signature in database
GPG Key ID: 8721727971871937
1 changed files with 1 additions and 0 deletions

View File

@ -66,6 +66,7 @@ ClockFace.prototype.tick = function() {
};
ClockFace.prototype.start = function() {
Bangle.CLOCK = 1;
Bangle.loadWidgets();
if (this.init) this.init.apply(this);
if (this._upDown) Bangle.setUI("clockupdown", d=>this._upDown.apply(this,[d]));