Reset selection to 0 on resign from setting state

I believe this also needs to be set back to 0 so the setting screen will resume at minutes, not potentially at settings on next run.
This commit is contained in:
David Keck 2022-01-19 12:12:43 -06:00 committed by GitHub
parent 138b3d0c5e
commit caf41d28dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,6 +221,7 @@ void countdown_face_resign(movement_settings_t *settings, void *context) {
(void) settings;
countdown_state_t *state = (countdown_state_t *)context;
if (state->mode == cd_setting) {
state->selection = 0;
state->mode = cd_waiting;
}
}