diff options
author | ConfuSomu | 2021-05-01 16:44:13 -0400 |
---|---|---|
committer | ConfuSomu | 2021-05-01 16:44:13 -0400 |
commit | 9e849edf8493daf2b5632ffc4af98093490693e5 (patch) | |
tree | 59792932d1bb546b5cb519a345d2485c538a2253 /apps/settings/main.cpp | |
parent | c235ac0bee1594f4758ba0e6f77a4ddb2e5af662 (diff) | |
download | pico-watch-9e849edf8493daf2b5632ffc4af98093490693e5.tar pico-watch-9e849edf8493daf2b5632ffc4af98093490693e5.tar.gz pico-watch-9e849edf8493daf2b5632ffc4af98093490693e5.zip |
Display last selected option when showing choices
Avoid displaying the first option again when something else has been
selected.
Diffstat (limited to 'apps/settings/main.cpp')
-rw-r--r-- | apps/settings/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/settings/main.cpp b/apps/settings/main.cpp index 78be3e2..c69381b 100644 --- a/apps/settings/main.cpp +++ b/apps/settings/main.cpp @@ -38,8 +38,9 @@ namespace app_settings { datetime_t datetime; app_api->datetime_get(&datetime); + int choice = 0; while (true) { - int choice = app_api->gui_popup_strchoice(SET0_NAME, SET0_DESC, choices, 8); + choice = app_api->gui_popup_strchoice(SET0_NAME, SET0_DESC, choices, 8, 0, -1, choice); min_value = 0; switch (choice) { |