summaryrefslogtreecommitdiff
path: root/src/displayapp/DisplayApp.cpp
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2022-07-21 22:53:36 +0300
committerGitHub <noreply@github.com>2022-07-21 22:53:36 +0300
commit9ee1160578e22e8dfa3da89dfd6405439d374da7 (patch)
treef92deb112a179f13fda4eec0459a12ee82a75b32 /src/displayapp/DisplayApp.cpp
parent411f2d19e116f3e81f767c1956ec02bdb9142a43 (diff)
Reset timer by long pressing on the button (#1214)
* Reset timer by long pressing on the button * Consider press_lost as released Otherwise the bar would keep increasing if the finger slid off the button
Diffstat (limited to 'src/displayapp/DisplayApp.cpp')
-rw-r--r--src/displayapp/DisplayApp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp
index 731d9c01..93d7277d 100644
--- a/src/displayapp/DisplayApp.cpp
+++ b/src/displayapp/DisplayApp.cpp
@@ -183,7 +183,7 @@ void DisplayApp::Refresh() {
case Messages::TimerDone:
if (currentApp == Apps::Timer) {
auto* timer = static_cast<Screens::Timer*>(currentScreen.get());
- timer->SetDone();
+ timer->Reset();
} else {
LoadApp(Apps::Timer, DisplayApp::FullRefreshDirections::Down);
}