wps.c cleanup gui_show_wps

remove some old cruft move a few things around clean-up flow

Change-Id: I138c6cd9e2d58ef526eb686333da413819df725d
This commit is contained in:
William Wilgus 2022-12-14 03:06:04 -05:00
parent eaf717744d
commit 6b87bfadff
17 changed files with 249 additions and 238 deletions

View file

@ -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)