Move backdrop handling out of the (potential) middle of an if-else. Right now we don't have a target with both colour display and hotswap, but we probably will (when getting USB OTG to work on H300).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9983 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
35aae1ce9a
commit
586cfa3a91
1 changed files with 3 additions and 3 deletions
|
@ -887,13 +887,13 @@ static bool dirbrowse(void)
|
|||
|
||||
if (gui_wps_show() == SYS_USB_CONNECTED)
|
||||
reload_dir = true;
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
show_main_backdrop();
|
||||
#endif
|
||||
#ifdef HAVE_HOTSWAP
|
||||
else
|
||||
if (!id3db) /* Try reload to catch 'no longer valid' case. */
|
||||
reload_dir = true;
|
||||
#endif
|
||||
#ifdef HAVE_LCD_COLOR
|
||||
show_main_backdrop();
|
||||
#endif
|
||||
id3db = check_changed_id3mode(id3db);
|
||||
restore = true;
|
||||
|
|
Loading…
Reference in a new issue