From efd6ec5083b98715c222666c26e03ef52fece63c Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Sun, 16 Apr 2023 21:06:05 +0100 Subject: [PATCH] clkinfo stopw: fix redrawing when paused --- apps/clkinfostopw/clkinfo.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/apps/clkinfostopw/clkinfo.ts b/apps/clkinfostopw/clkinfo.ts index 39a0637bc..6051e106e 100644 --- a/apps/clkinfostopw/clkinfo.ts +++ b/apps/clkinfostopw/clkinfo.ts @@ -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) {