~exec64/imv-devel

Pause slideshow when view->playing is false v1 PROPOSED

Robert Günzler: 1
 Pause slideshow when view->playing is false

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~exec64/imv-devel/patches/30337/mbox | git am -3
Learn more about email & git

[PATCH] Pause slideshow when view->playing is false Export this patch

From: Robert Guenzler <r@gnzler.io>

Signed-off-by: Robert Günzler <r@gnzler.io>
---
 src/imv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/imv.c b/src/imv.c
index 8380a12..4094d97 100644
--- a/src/imv.c
+++ b/src/imv.c
@@ -1130,7 +1130,7 @@ int imv_run(struct imv *imv)
    }

    /* handle slideshow */
    if (imv->slideshow.duration != 0.0) {
    if (imv_viewport_is_playing(imv->view) && imv->slideshow.duration != 0.0) {
      double dt = current_time - last_time;

      imv->slideshow.elapsed += dt;
-- 
2.34.1