Use splashes for errors in the properties plugin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13781 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
76855f0039
commit
11b559a027
1 changed files with 3 additions and 10 deletions
|
@ -299,11 +299,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file)
|
|||
if(!found)
|
||||
{
|
||||
/* weird: we couldn't find the entry. This Should Never Happen (TM) */
|
||||
rb->lcd_clear_display();
|
||||
rb->lcd_puts(0,0,"File/Dir not found:");
|
||||
rb->lcd_puts(0,1,(char*)file);
|
||||
rb->lcd_update();
|
||||
|
||||
rb->splash(0, "File/Dir not found: %s", (char*)file);
|
||||
rb->action_userabort(TIMEOUT_BLOCK);
|
||||
return PLUGIN_OK;
|
||||
}
|
||||
|
@ -311,11 +307,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file)
|
|||
/* get the info depending on its_a_dir */
|
||||
if(!(its_a_dir ? dir_properties((char*)file):file_properties((char*)file)))
|
||||
{
|
||||
/* something went wrong */
|
||||
rb->lcd_clear_display();
|
||||
rb->lcd_puts(0,0,"Failed to gather information");
|
||||
rb->lcd_update();
|
||||
|
||||
/* something went wrong (to do: tell user what it was (nesting,...) */
|
||||
rb->splash(0, "Failed to gather information");
|
||||
rb->action_userabort(TIMEOUT_BLOCK);
|
||||
return PLUGIN_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue