summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2022-12-16 13:04:56 +0100
committerChristian Soffke <christian.soffke@gmail.com>2022-12-16 13:04:56 +0100
commit222ff0cb14912d75993f00420382929dc7c7d33b (patch)
tree5f1c9b1d8eb0e7baf87b54ab6ba1627a81d3aa56
parenta6bafe51a63850dcb25a61b1722595895e9a539e (diff)
downloadrockbox-222ff0cb14.tar.gz
rockbox-222ff0cb14.zip
Plugin return: only skip SBS refresh if WPS was previous activity
1) the plugin return value isn't necessarily respected. 2) the screen will be updated regardless, before the WPS is displayed, which means the skin may appear in an "incorrect" state for a moment. It is therefore better to simplify this to a single condition. Change-Id: I723e6fe4862172075b9a4814080f612c2b2fb490
-rw-r--r--apps/plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugin.c b/apps/plugin.c
index 166c9baa04..f0667b7e9d 100644
--- a/apps/plugin.c
+++ b/apps/plugin.c
@@ -926,7 +926,7 @@ int plugin_load(const char* plugin, const void* parameter)
tree_unlock_cache(tree_get_context());
pop_current_activity_without_refresh();
- if ((rc != PLUGIN_GOTO_WPS) && (get_current_activity() != ACTIVITY_WPS))
+ if (get_current_activity() != ACTIVITY_WPS)
{
FOR_NB_SCREENS(i)
skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL);