summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/settings.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 98cd6ebc95..4c16c6a0ec 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -308,7 +308,13 @@ bool settings_load_config(const char* file, bool apply)
308 *v = temp; 308 *v = temp;
309 } 309 }
310 else 310 else
311 *v = atoi(value); 311 { /* atoi breaks choice settings because they
312 * don't have int-like values, and would
313 * fall back to the first value (i.e. 0)
314 * due to atoi */
315 if (!(settings[i].flags&F_CHOICE_SETTING))
316 *v = atoi(value);
317 }
312 } 318 }
313 break; 319 break;
314 case F_T_BOOL: 320 case F_T_BOOL: