Set bell indicator on reactivating countdown/tomato faces

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.
This commit is contained in:
James Haggerty 2022-11-15 20:32:53 +11:00
parent c149fef92d
commit 4f66e29b61
2 changed files with 2 additions and 0 deletions

View File

@ -132,6 +132,7 @@ void countdown_face_activate(movement_settings_t *settings, void *context) {
if(state->mode == cd_running) { if(state->mode == cd_running) {
watch_date_time now = watch_rtc_get_date_time(); watch_date_time now = watch_rtc_get_date_time();
state->now_ts = watch_utility_date_time_to_unix_time(now, get_tz_offset(settings)); state->now_ts = watch_utility_date_time_to_unix_time(now, get_tz_offset(settings));
watch_set_indicator(WATCH_INDICATOR_BELL);
} }
} }

View File

@ -124,6 +124,7 @@ void tomato_face_activate(movement_settings_t *settings, void *context) {
if (state->mode == tomato_run) { if (state->mode == tomato_run) {
watch_date_time now = watch_rtc_get_date_time(); watch_date_time now = watch_rtc_get_date_time();
state->now_ts = watch_utility_date_time_to_unix_time(now, get_tz_offset(settings)); state->now_ts = watch_utility_date_time_to_unix_time(now, get_tz_offset(settings));
watch_set_indicator(WATCH_INDICATOR_BELL);
} }
watch_set_colon(); watch_set_colon();
} }