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
This commit is contained in:
William Wilgus 2021-11-07 12:48:46 -05:00
parent cfbc1cfce1
commit f07bacac9e

View file

@ -715,7 +715,7 @@ static int load_plugin_screen(char *key)
int old_global = global_status.last_screen;
last_screen = next_screen;
global_status.last_screen = (char)next_screen;
status_save();
/*status_save(); //only needed if we crash */
while(loops-- > 0) /* just to keep things from getting out of hand */
{