Clear the RWPS backdrop when a RWPS is loaded, not when a WPS is loaded.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13275 a1c6a512-1295-4272-9138-f99709370657
diff --git a/apps/filetree.c b/apps/filetree.c
index 7073e59..aea81a7 100644
--- a/apps/filetree.c
+++ b/apps/filetree.c
@@ -453,9 +453,6 @@
#if LCD_DEPTH > 1
unload_wps_backdrop();
#endif
-#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
- unload_remote_wps_backdrop();
-#endif
wps_data_load(gui_wps[0].data, buf, true);
set_file(buf, (char *)global_settings.wps_file,
MAX_FILENAME);
@@ -465,6 +462,9 @@
/* remote-wps config file */
case FILE_ATTR_RWPS:
gui_syncsplash(0, str(LANG_WAIT));
+#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1
+ unload_remote_wps_backdrop();
+#endif
wps_data_load(gui_wps[1].data, buf, true);
set_file(buf, (char *)global_settings.rwps_file,
MAX_FILENAME);