summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/StopWatch.cpp
diff options
context:
space:
mode:
authorJean-François Milants <jf@codingfield.com>2021-05-13 11:20:19 (GMT)
committerJean-François Milants <jf@codingfield.com>2021-05-13 11:20:19 (GMT)
commit88e3790fbffc6d1606ff1d7ef0c1036bd4d8b47b (patch)
tree13e3a421ec4e4cf5d9c7c17bea65b2e46b20283d /src/displayapp/screens/StopWatch.cpp
parentafd5ac0d4a38d894b60ccec9c7aa592bb4cd05ee (diff)
parent456a57215aca432da6f1842102c8064358927907 (diff)
Merge branch 'develop' of github.com:JF002/Pinetime into develop
Diffstat (limited to 'src/displayapp/screens/StopWatch.cpp')
-rw-r--r--src/displayapp/screens/StopWatch.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/displayapp/screens/StopWatch.cpp b/src/displayapp/screens/StopWatch.cpp
index e06981a..d7cd20c 100644
--- a/src/displayapp/screens/StopWatch.cpp
+++ b/src/displayapp/screens/StopWatch.cpp
@@ -115,8 +115,9 @@ bool StopWatch::Refresh() {
// Init state when an user first opens the app
// and when a stop/reset button is pressed
case States::Init: {
- if (btnStopLap) {
+ if (btnStopLap != nullptr) {
lv_obj_del(btnStopLap);
+ btnStopLap = nullptr;
}
// The initial default value
lv_label_set_text(time, "00:00");