diff options
author | William Wilgus <wilgus.william@gmail.com> | 2021-11-07 12:48:46 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2021-11-07 12:48:46 -0500 |
commit | f07bacac9e36b8b6338bd242b6a1c580b277c179 (patch) | |
tree | 76d4548fa282b51a9b3344757ccd7ab54b7af583 | |
parent | cfbc1cfce1f427577d9fff4a57a00d9f29e2b76b (diff) | |
download | rockbox-f07bacac9e36b8b6338bd242b6a1c580b277c179.tar.gz rockbox-f07bacac9e36b8b6338bd242b6a1c580b277c179.zip |
plugin_screen don't save settings on every plugin execution
we shouldn't need to save the last_screen unless the plugin were to
bypass the normal shutdown procedure
if its a crash do we really want to resume the plugin?
its it is intentional save the settings prior.
Change-Id: I994ed256e7b9e88add0c846825a39b298e2644dd
-rw-r--r-- | apps/root_menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c index 49977ae453..e4020ae6c7 100644 --- a/apps/root_menu.c +++ b/apps/root_menu.c | |||
@@ -715,7 +715,7 @@ static int load_plugin_screen(char *key) | |||
715 | int old_global = global_status.last_screen; | 715 | int old_global = global_status.last_screen; |
716 | last_screen = next_screen; | 716 | last_screen = next_screen; |
717 | global_status.last_screen = (char)next_screen; | 717 | global_status.last_screen = (char)next_screen; |
718 | status_save(); | 718 | /*status_save(); //only needed if we crash */ |
719 | 719 | ||
720 | while(loops-- > 0) /* just to keep things from getting out of hand */ | 720 | while(loops-- > 0) /* just to keep things from getting out of hand */ |
721 | { | 721 | { |