]> git.earman.xyz Git - sensor-watch.git/commitdiff
Set bell indicator on reactivating countdown/tomato faces
authorJames Haggerty <james@gruemail.com>
Tue, 15 Nov 2022 09:32:53 +0000 (20:32 +1100)
committerJames Haggerty <james@gruemail.com>
Tue, 15 Nov 2022 09:32:53 +0000 (20:32 +1100)
If you moved away and back to these faces, you'd lose the indicator. Not that the indicator here
seems very valuable, since it's not displayed on simple_clock_face, but at least
this makes things more consistent.

movement/watch_faces/complication/countdown_face.c
movement/watch_faces/complication/tomato_face.c

index 194006b1e4ee7600b69724765749ed2303e641f2..92400e66fbfd910e435fa233d258303e13c84041 100644 (file)
@@ -132,6 +132,7 @@ void countdown_face_activate(movement_settings_t *settings, void *context) {
     if(state->mode == cd_running) {
         watch_date_time now = watch_rtc_get_date_time();
         state->now_ts = watch_utility_date_time_to_unix_time(now, get_tz_offset(settings));
+        watch_set_indicator(WATCH_INDICATOR_BELL);
     }
 }
 
index 37798daf91147be773413125ee518198f3cc6089..ed5554f2a28529dcd38db13f1fbf809940d9301f 100644 (file)
@@ -124,6 +124,7 @@ void tomato_face_activate(movement_settings_t *settings, void *context) {
     if (state->mode == tomato_run) {
         watch_date_time now = watch_rtc_get_date_time();
         state->now_ts = watch_utility_date_time_to_unix_time(now, get_tz_offset(settings));
+        watch_set_indicator(WATCH_INDICATOR_BELL);
     }
     watch_set_colon();
 }