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:
Jonathan Gordon 2007-07-19 09:17:25 +00:00
parent 9fe6e0214f
commit ca0cc784bc

View file

@ -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;
}