clkinfo stopw: fix redrawing when paused

pull/2695/head
Rob Pilling 2023-04-16 21:06:05 +01:00
parent 2443000117
commit efd6ec5083
1 changed files with 7 additions and 1 deletions

View File

@ -53,7 +53,13 @@
: durationOnPause,
img: img(),
}),
show: queueRedraw,
show: function(this: ClockInfo.MenuItem) {
if(startTime){ // only queue if active
queueRedraw.call(this);
}else{
this.emit('redraw')
}
},
hide: unqueueRedraw,
run: function() { // tapped
if (startTime) {