From 0bfcfd494a23bb52c459104eb55a23af421f1f99 Mon Sep 17 00:00:00 2001 From: Yandrik Date: Tue, 19 Nov 2024 22:59:52 +0100 Subject: [PATCH] fix(timer): fix + and - buttons --- app/src/bin/exapp-k-timer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/bin/exapp-k-timer.rs b/app/src/bin/exapp-k-timer.rs index 976d576..d261464 100644 --- a/app/src/bin/exapp-k-timer.rs +++ b/app/src/bin/exapp-k-timer.rs @@ -383,7 +383,7 @@ async fn main(spawner: Spawner) { .add_horizontal(IconButton::new(size32px::actions::AddCircle).smartstate(sm.next())) .clicked() { - if !appdata.timer_running() { + if !(appdata.timer_running() || appdata.timer_paused()) { appdata.add_secs(10); } } @@ -392,7 +392,7 @@ async fn main(spawner: Spawner) { .add(IconButton::new(size32px::actions::MinusCircle).smartstate(sm.next())) .clicked() { - if !appdata.timer_running() { + if !(appdata.timer_running() || appdata.timer_paused()) { appdata.sub_secs(10); } }