diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-07-03 23:38:22 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2007-07-03 23:38:22 +0000 |
commit | 11b559a02788c679e053fd4dd5fb5722be0e08ac (patch) | |
tree | 3100d02151f83ec8a5d7516f2c6248c9ecebc7e1 /apps/plugins | |
parent | 76855f0039d1659d992b7b7c705c45a6c4f4dead (diff) | |
download | rockbox-11b559a02788c679e053fd4dd5fb5722be0e08ac.tar.gz rockbox-11b559a02788c679e053fd4dd5fb5722be0e08ac.zip |
Use splashes for errors in the properties plugin
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13781 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/properties.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index 1726e01c34..079161a514 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c @@ -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; } |