forked from len0rd/rockbox
Don't display 'Cancelled' splash screen if setting not changed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12527 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
509a96dd51
commit
d94c7d3f76
1 changed files with 15 additions and 3 deletions
|
@ -1151,10 +1151,22 @@ static bool do_set_setting(const unsigned char* string, void *variable,
|
|||
}
|
||||
else if (action == ACTION_STD_CANCEL)
|
||||
{
|
||||
gui_syncsplash(HZ/2,true,str(LANG_MENU_SETTING_CANCEL));
|
||||
if (cb_data->type == INT)
|
||||
*(int*)variable = oldvalue;
|
||||
else *(bool*)variable = (bool)oldvalue;
|
||||
{
|
||||
if (*(int*)variable != oldvalue)
|
||||
{
|
||||
gui_syncsplash(HZ/2,true,str(LANG_MENU_SETTING_CANCEL));
|
||||
*(int*)variable = oldvalue;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (*(bool*)variable != (bool)oldvalue)
|
||||
{
|
||||
gui_syncsplash(HZ/2,true,str(LANG_MENU_SETTING_CANCEL));
|
||||
*(bool*)variable = (bool)oldvalue;
|
||||
}
|
||||
}
|
||||
done = true;
|
||||
}
|
||||
else if (action == ACTION_STD_OK)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue