Ensure Timer supplies an image for clkinfo items

pull/2401/head
Gordon Williams 2022-12-14 15:00:29 +00:00
parent 44d6cdb6e4
commit 1dcf6085d5
3 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -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;
})
})

View File

@ -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",