From 11552d071032caae3d0d2ea0d9b0156e12938cfb Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sun, 7 Dec 2025 13:10:04 -0500 Subject: [PATCH] bugfix PLUGIN_GOTO_ROOT didn't reset previous screen Change-Id: I971eb5a6890d35c9a06c37526c8107c6afde35e5 --- apps/root_menu.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/root_menu.c b/apps/root_menu.c index fa2e4406c1..4016d78a1b 100644 --- a/apps/root_menu.c +++ b/apps/root_menu.c @@ -808,13 +808,12 @@ static int load_plugin_screen(char *key) } continue; } - else if (ret == PLUGIN_GOTO_ROOT) - { - ret_val = GO_TO_ROOT; - } else { - ret_val = GO_TO_PREVIOUS; + if (ret == PLUGIN_GOTO_ROOT) + ret_val = GO_TO_ROOT; + else + ret_val = GO_TO_PREVIOUS; /* Prevents infinite loop with WPS, Plugins, Previous Screen*/ if (ret == PLUGIN_OK && old_global == GO_TO_WPS && !audio_status()) ret_val = GO_TO_ROOT;