Merge pull request #1864 from rigrig/clockface-clock=1

ClockFace: set Bangle.CLOCK=1 before loading widgets
master
Gordon Williams 2022-05-23 10:22:02 +01:00 committed by GitHub
commit 5e4ad094e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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]));