remove not need lines

master
dapgo 2023-01-09 15:56:28 +01:00
parent a8a9d106fe
commit 63371ba51e
1 changed files with 3 additions and 4 deletions

View File

@ -1,12 +1,11 @@
WIDGETS["wdclkbttm"]={area:"br",width:60,draw:function() {
console.log("clock? "+Bangle.CLOCK);
if (Bangle.CLOCK){
return; //avoid 2 clocks
}
if (!Bangle.CLOCK == !this.width) { // if we're the wrong size for if we have a clock or not...
this.width = Bangle.CLOCK?0:60;
/* if (!Bangle.CLOCK && this.width==0) {
this.width = 60;
return setTimeout(Bangle.drawWidgets,1); // widget changed size - redraw
}
}*/
if (!this.width) return; // if size not right, return
g.reset().setFont("6x8", 2).setFontAlign(-1, 0);
var time = require("locale").time(new Date(),1);