mirror of https://github.com/espruino/BangleApps
Add files via upload
parent
230baf7b24
commit
aedac6a429
|
@ -1,2 +1,2 @@
|
|||
0.01: 3/Feb/2023 Added 'Temperature Graph' app to depository.
|
||||
|
||||
0.02: 4/Feb/2023 Rewrote the widget handling after discovering there's a 'widget_utils' module to properly hide and show them.
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
Bangle.setBarometerPower(true,"tempgraph");
|
||||
Bangle.loadWidgets();
|
||||
var wids=WIDGETS;
|
||||
var widsOn=true;
|
||||
var rm=null;
|
||||
var gt=null;
|
||||
|
@ -50,10 +49,10 @@ var duration=times[durInd];
|
|||
function drawWids(){
|
||||
g.clear();
|
||||
if(widsOn){
|
||||
WIDGETS=wids;
|
||||
Bangle.drawWidgets();
|
||||
require("widget_utils").show();
|
||||
} else {
|
||||
WIDGETS={};
|
||||
require("widget_utils").hide();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue