summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-07-03 23:38:22 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-07-03 23:38:22 +0000
commit11b559a02788c679e053fd4dd5fb5722be0e08ac (patch)
tree3100d02151f83ec8a5d7516f2c6248c9ecebc7e1 /apps
parent76855f0039d1659d992b7b7c705c45a6c4f4dead (diff)
downloadrockbox-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')
-rw-r--r--apps/plugins/properties.c13
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)
299 if(!found) 299 if(!found)
300 { 300 {
301 /* weird: we couldn't find the entry. This Should Never Happen (TM) */ 301 /* weird: we couldn't find the entry. This Should Never Happen (TM) */
302 rb->lcd_clear_display(); 302 rb->splash(0, "File/Dir not found: %s", (char*)file);
303 rb->lcd_puts(0,0,"File/Dir not found:");
304 rb->lcd_puts(0,1,(char*)file);
305 rb->lcd_update();
306
307 rb->action_userabort(TIMEOUT_BLOCK); 303 rb->action_userabort(TIMEOUT_BLOCK);
308 return PLUGIN_OK; 304 return PLUGIN_OK;
309 } 305 }
@@ -311,11 +307,8 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file)
311 /* get the info depending on its_a_dir */ 307 /* get the info depending on its_a_dir */
312 if(!(its_a_dir ? dir_properties((char*)file):file_properties((char*)file))) 308 if(!(its_a_dir ? dir_properties((char*)file):file_properties((char*)file)))
313 { 309 {
314 /* something went wrong */ 310 /* something went wrong (to do: tell user what it was (nesting,...) */
315 rb->lcd_clear_display(); 311 rb->splash(0, "Failed to gather information");
316 rb->lcd_puts(0,0,"Failed to gather information");
317 rb->lcd_update();
318
319 rb->action_userabort(TIMEOUT_BLOCK); 312 rb->action_userabort(TIMEOUT_BLOCK);
320 return PLUGIN_OK; 313 return PLUGIN_OK;
321 } 314 }