diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-03-15 17:12:40 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-06-20 18:57:25 -0400 |
commit | ed37c2e8948960b45c9bac58f1ffb678fdf31f5d (patch) | |
tree | 8eeda559c74a45e21eb112e75fcd7e62c788a18e /apps/settings_list.c | |
parent | 58bf7c7e6fc9d94cbf1dacf3bd6b889fc4844895 (diff) | |
download | rockbox-ed37c2e8948960b45c9bac58f1ffb678fdf31f5d.tar.gz rockbox-ed37c2e8948960b45c9bac58f1ffb678fdf31f5d.zip |
FS#13193 - Add option to disable settings reset on startup
Updated version of the patch originally by user cockroach
UNTESTED
Ipods?, Iriver H10,
I do not own these players so YMMV
https://www.rockbox.org/tracker/task/13193
Change-Id: I7924837f582cc5c49ee68c186d6822f577f65147
Diffstat (limited to 'apps/settings_list.c')
-rw-r--r-- | apps/settings_list.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/settings_list.c b/apps/settings_list.c index 0e39a58b1a..e230a5a081 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c | |||
@@ -2168,6 +2168,12 @@ const struct settings_list settings[] = { | |||
2168 | #endif | 2168 | #endif |
2169 | ), | 2169 | ), |
2170 | #endif | 2170 | #endif |
2171 | #if defined(SETTINGS_RESET) || \ | ||
2172 | (CONFIG_KEYPAD == IPOD_4G_PAD) || \ | ||
2173 | (CONFIG_KEYPAD == IRIVER_H10_PAD) | ||
2174 | OFFON_SETTING(0, clear_settings_on_hold, LANG_CLEAR_SETTINGS_ON_HOLD, | ||
2175 | true, "clear settings on hold", NULL), | ||
2176 | #endif | ||
2171 | }; | 2177 | }; |
2172 | 2178 | ||
2173 | const int nb_settings = sizeof(settings)/sizeof(*settings); | 2179 | const int nb_settings = sizeof(settings)/sizeof(*settings); |