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,23 +424,18 @@ bool option_screen(struct settings_list *setting, bool use_temp_var)
|
|||
function(*variable);
|
||||
}
|
||||
|
||||
if (use_temp_var)
|
||||
if (oldvalue != *variable)
|
||||
{
|
||||
if (var_type == F_T_INT || var_type == F_T_UINT)
|
||||
if (use_temp_var)
|
||||
{
|
||||
if (oldvalue != *variable)
|
||||
{
|
||||
if (var_type == F_T_INT || var_type == F_T_UINT)
|
||||
*(int*)setting->setting = *variable;
|
||||
settings_save();
|
||||
}
|
||||
}
|
||||
else if (oldvalue != *variable)
|
||||
{
|
||||
*(bool*)setting->setting = *variable?true:false;
|
||||
settings_save();
|
||||
else
|
||||
*(bool*)setting->setting = *variable?true:false;
|
||||
}
|
||||
settings_save();
|
||||
}
|
||||
|
||||
|
||||
action_signalscreenchange();
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue