Fix the problem where settings stopped saving automatically
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13929 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9fe6e0214f
commit
ca0cc784bc
1 changed files with 7 additions and 12 deletions
|
@ -424,21 +424,16 @@ bool option_screen(struct settings_list *setting, bool use_temp_var)
|
|||
function(*variable);
|
||||
}
|
||||
|
||||
if (oldvalue != *variable)
|
||||
{
|
||||
if (use_temp_var)
|
||||
{
|
||||
if (var_type == F_T_INT || var_type == F_T_UINT)
|
||||
{
|
||||
if (oldvalue != *variable)
|
||||
{
|
||||
*(int*)setting->setting = *variable;
|
||||
settings_save();
|
||||
}
|
||||
}
|
||||
else if (oldvalue != *variable)
|
||||
{
|
||||
else
|
||||
*(bool*)setting->setting = *variable?true:false;
|
||||
settings_save();
|
||||
}
|
||||
settings_save();
|
||||
}
|
||||
|
||||
action_signalscreenchange();
|
||||
|
|
Loading…
Reference in a new issue