From 6b87bfadfff6c44722f8ffe5227c05c41b1b47c8 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Wed, 14 Dec 2022 03:06:04 -0500 Subject: wps.c cleanup gui_show_wps remove some old cruft move a few things around clean-up flow Change-Id: I138c6cd9e2d58ef526eb686333da413819df725d --- apps/plugin.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'apps/plugin.c') diff --git a/apps/plugin.c b/apps/plugin.c index 21dbe47c54..45829a42ad 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -925,14 +925,16 @@ int plugin_load(const char* plugin, const void* parameter) tree_unlock_cache(tree_get_context()); - pop_current_activity(ACTIVITY_REFRESH_DEFERRED); - int curr_activity = get_current_activity(); - if ((curr_activity != ACTIVITY_PLAYLISTVIEWER) && - (curr_activity != ACTIVITY_WPS) && - (rc != PLUGIN_GOTO_WPS)) + pop_current_activity_without_refresh(); + if (rc != PLUGIN_GOTO_WPS) { - FOR_NB_SCREENS(i) - skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL); + int curr_activity = get_current_activity(); + if ((curr_activity != ACTIVITY_PLAYLISTVIEWER) && + (curr_activity != ACTIVITY_WPS)) + { + FOR_NB_SCREENS(i) + skin_update(CUSTOM_STATUSBAR, i, SKIN_REFRESH_ALL); + } } if (!pfn_tsr_exit) -- cgit v1.2.3