mirror of https://github.com/espruino/BangleApps
clkinfo stopw: fix redrawing when paused
parent
2443000117
commit
efd6ec5083
|
@ -53,7 +53,13 @@
|
||||||
: durationOnPause,
|
: durationOnPause,
|
||||||
img: img(),
|
img: img(),
|
||||||
}),
|
}),
|
||||||
show: queueRedraw,
|
show: function(this: ClockInfo.MenuItem) {
|
||||||
|
if(startTime){ // only queue if active
|
||||||
|
queueRedraw.call(this);
|
||||||
|
}else{
|
||||||
|
this.emit('redraw')
|
||||||
|
}
|
||||||
|
},
|
||||||
hide: unqueueRedraw,
|
hide: unqueueRedraw,
|
||||||
run: function() { // tapped
|
run: function() { // tapped
|
||||||
if (startTime) {
|
if (startTime) {
|
||||||
|
|
Loading…
Reference in New Issue