mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-04-12 00:47:49 -04:00
OpenPlugins reset start_in_screen when database record is deleted
This is more of an ease of use enhancement than a bug but it should prevent the annoyance of the message about the missing entry without needing to go and reset the start in screen setting Change-Id: I15eb005ce254eb0f0d3f2543abf710b68468a8b3
This commit is contained in:
parent
acd3a5f0ce
commit
db849f5f8a
1 changed files with 5 additions and 0 deletions
|
|
@ -480,6 +480,11 @@ static void op_entry_remove(int selection)
|
|||
{
|
||||
lang_id = op_entry.lang_id;
|
||||
hash = op_entry.hash;
|
||||
if(lang_id == LANG_START_SCREEN
|
||||
&& rb->global_settings->start_in_screen == GO_TO_PLUGIN +2)
|
||||
{
|
||||
rb->global_settings->start_in_screen = GO_TO_ROOT + 2; /* default */
|
||||
}
|
||||
}
|
||||
rb->memset(&op_entry, 0, op_entry_sz);
|
||||
op_entry.lang_id = lang_id;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue