]> git.earman.xyz Git - sensor-watch.git/commitdiff
Reset selection to 0 on resign from setting state
authorDavid Keck <davidskeck@users.noreply.github.com>
Wed, 19 Jan 2022 18:12:43 +0000 (12:12 -0600)
committerGitHub <noreply@github.com>
Wed, 19 Jan 2022 18:12:43 +0000 (12:12 -0600)
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.

movement/watch_faces/complications/countdown_face.c

index 3dcc08c2a4865609760b99c9bee6f5a887669417..a910e96c8f1d2b912216e0b449ebd4f396e1a005 100644 (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;
     }
 }