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:
William Wilgus 2026-03-19 12:01:27 -04:00
parent acd3a5f0ce
commit db849f5f8a

View file

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