forked from len0rd/rockbox
Only show the 'Loading...' splash if the file is actually loading (won't be displayed if the file isn't supported).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9672 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5696c9202e
commit
ddb36b2e77
1 changed files with 24 additions and 9 deletions
|
@ -351,7 +351,6 @@ int ft_enter(struct tree_context* c)
|
||||||
bool play = false;
|
bool play = false;
|
||||||
int start_index=0;
|
int start_index=0;
|
||||||
|
|
||||||
gui_syncsplash(0, true, str(LANG_WAIT));
|
|
||||||
switch ( file->attr & TREE_ATTR_MASK ) {
|
switch ( file->attr & TREE_ATTR_MASK ) {
|
||||||
case TREE_ATTR_M3U:
|
case TREE_ATTR_M3U:
|
||||||
if (global_settings.party_mode) {
|
if (global_settings.party_mode) {
|
||||||
|
@ -362,6 +361,8 @@ int ft_enter(struct tree_context* c)
|
||||||
if (bookmark_autoload(buf))
|
if (bookmark_autoload(buf))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
gui_syncsplash(0, true, str(LANG_WAIT));
|
||||||
|
|
||||||
/* about to create a new current playlist...
|
/* about to create a new current playlist...
|
||||||
allow user to cancel the operation */
|
allow user to cancel the operation */
|
||||||
if (global_settings.warnon_erase_dynplaylist &&
|
if (global_settings.warnon_erase_dynplaylist &&
|
||||||
|
@ -388,6 +389,8 @@ int ft_enter(struct tree_context* c)
|
||||||
if (bookmark_autoload(c->currdir))
|
if (bookmark_autoload(c->currdir))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
gui_syncsplash(0, true, str(LANG_WAIT));
|
||||||
|
|
||||||
/* about to create a new current playlist...
|
/* about to create a new current playlist...
|
||||||
allow user to cancel the operation */
|
allow user to cancel the operation */
|
||||||
if (global_settings.warnon_erase_dynplaylist &&
|
if (global_settings.warnon_erase_dynplaylist &&
|
||||||
|
@ -429,6 +432,8 @@ int ft_enter(struct tree_context* c)
|
||||||
/* fmr preset file */
|
/* fmr preset file */
|
||||||
case TREE_ATTR_FMR:
|
case TREE_ATTR_FMR:
|
||||||
|
|
||||||
|
gui_syncsplash(0, true, str(LANG_WAIT));
|
||||||
|
|
||||||
/* Preset inside the default folder. */
|
/* Preset inside the default folder. */
|
||||||
if(!strncasecmp(FMPRESET_PATH, buf, strlen(FMPRESET_PATH)))
|
if(!strncasecmp(FMPRESET_PATH, buf, strlen(FMPRESET_PATH)))
|
||||||
{
|
{
|
||||||
|
@ -455,6 +460,7 @@ int ft_enter(struct tree_context* c)
|
||||||
|
|
||||||
/* wps config file */
|
/* wps config file */
|
||||||
case TREE_ATTR_WPS:
|
case TREE_ATTR_WPS:
|
||||||
|
gui_syncsplash(0, true, str(LANG_WAIT));
|
||||||
wps_data_load(gui_wps[0].data, buf, true);
|
wps_data_load(gui_wps[0].data, buf, true);
|
||||||
set_file(buf, (char *)global_settings.wps_file,
|
set_file(buf, (char *)global_settings.wps_file,
|
||||||
MAX_FILENAME);
|
MAX_FILENAME);
|
||||||
|
@ -463,6 +469,7 @@ int ft_enter(struct tree_context* c)
|
||||||
#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1)
|
#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1)
|
||||||
/* remote-wps config file */
|
/* remote-wps config file */
|
||||||
case TREE_ATTR_RWPS:
|
case TREE_ATTR_RWPS:
|
||||||
|
gui_syncsplash(0, true, str(LANG_WAIT));
|
||||||
wps_data_load(gui_wps[1].data, buf, true);
|
wps_data_load(gui_wps[1].data, buf, true);
|
||||||
set_file(buf, (char *)global_settings.rwps_file,
|
set_file(buf, (char *)global_settings.rwps_file,
|
||||||
MAX_FILENAME);
|
MAX_FILENAME);
|
||||||
|
@ -470,17 +477,20 @@ int ft_enter(struct tree_context* c)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case TREE_ATTR_CFG:
|
case TREE_ATTR_CFG:
|
||||||
|
gui_syncsplash(0, true, str(LANG_WAIT));
|
||||||
if (!settings_load_config(buf))
|
if (!settings_load_config(buf))
|
||||||
break;
|
break;
|
||||||
gui_syncsplash(HZ, true, str(LANG_SETTINGS_LOADED));
|
gui_syncsplash(HZ, true, str(LANG_SETTINGS_LOADED));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TREE_ATTR_BMARK:
|
case TREE_ATTR_BMARK:
|
||||||
|
gui_syncsplash(0, true, str(LANG_WAIT));
|
||||||
bookmark_load(buf, false);
|
bookmark_load(buf, false);
|
||||||
reload_dir = true;
|
reload_dir = true;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TREE_ATTR_LNG:
|
case TREE_ATTR_LNG:
|
||||||
|
gui_syncsplash(0, true, str(LANG_WAIT));
|
||||||
if(!lang_load(buf)) {
|
if(!lang_load(buf)) {
|
||||||
set_file(buf, (char *)global_settings.lang_file,
|
set_file(buf, (char *)global_settings.lang_file,
|
||||||
MAX_FILENAME);
|
MAX_FILENAME);
|
||||||
|
@ -491,11 +501,13 @@ int ft_enter(struct tree_context* c)
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
case TREE_ATTR_FONT:
|
case TREE_ATTR_FONT:
|
||||||
|
gui_syncsplash(0, true, str(LANG_WAIT));
|
||||||
font_load(buf);
|
font_load(buf);
|
||||||
set_file(buf, (char *)global_settings.font_file, MAX_FILENAME);
|
set_file(buf, (char *)global_settings.font_file, MAX_FILENAME);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TREE_ATTR_KBD:
|
case TREE_ATTR_KBD:
|
||||||
|
gui_syncsplash(0, true, str(LANG_WAIT));
|
||||||
if (!load_kbd(buf))
|
if (!load_kbd(buf))
|
||||||
gui_syncsplash(HZ, true, str(LANG_KEYBOARD_LOADED));
|
gui_syncsplash(HZ, true, str(LANG_KEYBOARD_LOADED));
|
||||||
set_file(buf, (char *)global_settings.kbd_file, MAX_FILENAME);
|
set_file(buf, (char *)global_settings.kbd_file, MAX_FILENAME);
|
||||||
|
@ -505,6 +517,7 @@ int ft_enter(struct tree_context* c)
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
/* firmware file */
|
/* firmware file */
|
||||||
case TREE_ATTR_MOD:
|
case TREE_ATTR_MOD:
|
||||||
|
gui_syncsplash(0, true, str(LANG_WAIT));
|
||||||
rolo_load(buf);
|
rolo_load(buf);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
@ -516,6 +529,8 @@ int ft_enter(struct tree_context* c)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gui_syncsplash(0, true, str(LANG_WAIT));
|
||||||
|
|
||||||
if (plugin_load(buf,NULL) == PLUGIN_USB_CONNECTED)
|
if (plugin_load(buf,NULL) == PLUGIN_USB_CONNECTED)
|
||||||
{
|
{
|
||||||
if(*c->dirfilter > NUM_FILTER_MODES)
|
if(*c->dirfilter > NUM_FILTER_MODES)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue