OpenPlugins reset start_in_screen when database record is deleted

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit db849f5f8a8e95326f787f58cf1811197aab4470
Author: William Wilgus <[email protected]>
Date:   Thu Mar 19 12:01:27 2026 -0400

    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

diff --git a/apps/plugins/open_plugins.c b/apps/plugins/open_plugins.c
index e90d2d95de..9da5c1f3a2 100644
--- a/apps/plugins/open_plugins.c
+++ b/apps/plugins/open_plugins.c
@@ -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;
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.