From 8283752223a4c0f0d98c1798568526546c4ab7b9 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 20 Jun 2022 22:37:09 -0400 Subject: Reset settings on button hold extend this properly to the gigabeast and iriver updated manual entries Change-Id: Ibd1bce8d113193cb3b76f4daf0d6ceb01a2f7585 --- apps/features.txt | 3 +- apps/lang/english.lang | 13 +++++-- apps/main.c | 8 ++-- apps/menus/settings_menu.c | 7 ++-- apps/settings.h | 7 ++-- apps/settings_list.c | 7 ++-- .../configure_rockbox/startup_shutdown_options.tex | 44 +++++++++++++++++----- 7 files changed, 64 insertions(+), 25 deletions(-) diff --git a/apps/features.txt b/apps/features.txt index da2064ab2f..2262f7502e 100644 --- a/apps/features.txt +++ b/apps/features.txt @@ -290,7 +290,8 @@ multi_boot hibylinux #endif -#if defined(SETTINGS_RESET) || \ +#if defined(BUTTON_REC) || \ + (CONFIG_KEYPAD == GIGABEAT_PAD) || \ (CONFIG_KEYPAD == IPOD_4G_PAD) || \ (CONFIG_KEYPAD == IRIVER_H10_PAD) clear_settings_on_hold diff --git a/apps/lang/english.lang b/apps/lang/english.lang index f4571aa6bc..75849714e6 100644 --- a/apps/lang/english.lang +++ b/apps/lang/english.lang @@ -16374,14 +16374,21 @@ user: core *: none - clear_settings_on_hold, ipod4g, iriverh10: "Clear settings when hold switch is on during startup" + ipod3g: none + ipod*: "Clear settings when hold switch is on during startup" + clear_settings_on_hold, iriverh10: "Clear settings when reset button is held during startup" *: none - clear_settings_on_hold, ipod4g, iriverh10: "Clear settings when hold switch is on during startup" + ipod3g: none + ipod*: "Clear settings when hold switch is on during startup" + clear_settings_on_hold, iriverh10: "Clear settings when reset button is held during startup" *: none - clear_settings_on_hold, ipod4g, iriverh10: "Clear settings when hold switch is on during startup" + ipod3g: none + ipod*: "Clear settings when hold switch is on during startup" + clear_settings_on_hold, iriverh10: "Clear settings when reset button is held during startup" + diff --git a/apps/main.c b/apps/main.c index 515a9978f5..59932d6185 100644 --- a/apps/main.c +++ b/apps/main.c @@ -570,16 +570,18 @@ static void init(void) settings_load(SETTINGS_ALL); CHART("