diff options
| -rw-r--r-- | apps/gui/option_select.c | 2 | ||||
| -rw-r--r-- | apps/gui/select.c | 1 | ||||
| -rw-r--r-- | apps/settings.c | 1 |
3 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/option_select.c b/apps/gui/option_select.c index 68103c7..d482bd2 100644 --- a/apps/gui/option_select.c +++ b/apps/gui/option_select.c @@ -39,7 +39,7 @@ void option_select_init_numeric(struct option_select * opt, opt->extra_string=unit; opt->formatter=formatter; opt->items=NULL; - opt->limit_loop=false; + opt->limit_loop=true; } void option_select_init_items(struct option_select * opt, diff --git a/apps/gui/select.c b/apps/gui/select.c index 12b3c91..89a0478 100644 --- a/apps/gui/select.c +++ b/apps/gui/select.c @@ -77,7 +77,6 @@ void gui_syncselect_draw(struct gui_select * select) bool gui_syncselect_do_button(struct gui_select * select, int button) { - select->options.limit_loop = false; switch(button) { case SELECT_INC | BUTTON_REPEAT : diff --git a/apps/settings.c b/apps/settings.c index 4bf098d..d344163 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -1585,6 +1585,7 @@ bool set_option(const char* string, void* variable, enum optiontype type, { gui_syncstatusbar_draw(&statusbars, true); button = button_get_w_tmo(HZ/2); + select.options.limit_loop = false; if(gui_syncselect_do_button(&select, button)) { /* *variable = gui_select_get_selected(&select) */ |