mirror of https://github.com/espruino/BangleApps
Ensure Timer supplies an image for clkinfo items
parent
44d6cdb6e4
commit
1dcf6085d5
|
@ -2,4 +2,5 @@
|
|||
0.02: Rewrite with new interface
|
||||
0.03: Added clock infos to expose timer functionality to clocks.
|
||||
0.04: Improvements of clock infos.
|
||||
0.05: Updated clkinfo icon.
|
||||
0.05: Updated clkinfo icon.
|
||||
0.06: Ensure Timer supplies an image for clkinfo items
|
||||
|
|
|
@ -69,7 +69,7 @@
|
|||
items: [
|
||||
{
|
||||
name: null,
|
||||
get: () => ({ text: getAlarmMinutesText() + (isAlarmEnabled() ? " min" : ""), img: null}),
|
||||
get: () => ({ text: getAlarmMinutesText() + (isAlarmEnabled() ? " min" : ""), img: smpltmrItems.img }),
|
||||
show: function() { smpltmrItems.items[0].emit("redraw"); },
|
||||
hide: function () {},
|
||||
run: function() { }
|
||||
|
@ -81,7 +81,7 @@
|
|||
offsets.forEach((o, i) => {
|
||||
smpltmrItems.items = smpltmrItems.items.concat({
|
||||
name: null,
|
||||
get: () => ({ text: (o > 0 ? "+" : "") + o + " min.", img: null}),
|
||||
get: () => ({ text: (o > 0 ? "+" : "") + o + " min.", img: smpltmrItems.img }),
|
||||
show: function() { smpltmrItems.items[i+1].emit("redraw"); },
|
||||
hide: function () {},
|
||||
run: function() {
|
||||
|
@ -94,4 +94,4 @@
|
|||
});
|
||||
|
||||
return smpltmrItems;
|
||||
})
|
||||
})
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"id": "smpltmr",
|
||||
"name": "Simple Timer",
|
||||
"shortName": "Simple Timer",
|
||||
"version": "0.05",
|
||||
"version": "0.06",
|
||||
"description": "A very simple app to start a timer.",
|
||||
"icon": "app.png",
|
||||
"tags": "tool,alarm,timer,clkinfo",
|
||||
|
|
Loading…
Reference in New Issue