diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/apps/tree.c b/apps/tree.c index 61f6971018..5fe94cb290 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -205,14 +205,15 @@ bool check_rockboxdir(void) | |||
205 | { | 205 | { |
206 | DIR *dir = opendir(ROCKBOX_DIR); | 206 | DIR *dir = opendir(ROCKBOX_DIR); |
207 | if(!dir) | 207 | if(!dir) |
208 | { | 208 | { /* No need to localise this message. |
209 | If .rockbox is missing, it wouldn't work anyway */ | ||
209 | int i; | 210 | int i; |
210 | FOR_NB_SCREENS(i) | 211 | FOR_NB_SCREENS(i) |
211 | screens[i].clear_display(); | 212 | screens[i].clear_display(); |
212 | gui_syncsplash(HZ*2, true, str(LANG_NO_ROCKBOX_DIR)); | 213 | gui_syncsplash(HZ*2, true, "No .rockbox directory"); |
213 | FOR_NB_SCREENS(i) | 214 | FOR_NB_SCREENS(i) |
214 | screens[i].clear_display(); | 215 | screens[i].clear_display(); |
215 | gui_syncsplash(HZ*2, true, str(LANG_INSTALLATION_INCOMPLETE)); | 216 | gui_syncsplash(HZ*2, true, "Installation incomplete"); |
216 | return false; | 217 | return false; |
217 | } | 218 | } |
218 | closedir(dir); | 219 | closedir(dir); |
@@ -331,22 +332,7 @@ static int update_dir(void) | |||
331 | if(!id3db && (tc.dirfull || | 332 | if(!id3db && (tc.dirfull || |
332 | tc.filesindir == global_settings.max_files_in_dir) ) | 333 | tc.filesindir == global_settings.max_files_in_dir) ) |
333 | { | 334 | { |
334 | /* dir full */ | 335 | gui_syncsplash(HZ, true, str(LANG_SHOWDIR_BUFFER_FULL)); |
335 | int i; | ||
336 | FOR_NB_SCREENS(i) | ||
337 | { | ||
338 | gui_textarea_clear(&screens[i]); | ||
339 | #ifdef HAVE_LCD_CHARCELLS | ||
340 | screens[i].double_height(false); | ||
341 | #endif | ||
342 | screens[i].clear_display(); | ||
343 | screens[i].puts(0,0,str(LANG_SHOWDIR_ERROR_BUFFER)); | ||
344 | screens[i].puts(0,1,str(LANG_SHOWDIR_ERROR_FULL)); | ||
345 | gui_textarea_update(&screens[i]); | ||
346 | } | ||
347 | sleep(HZ*2); | ||
348 | FOR_NB_SCREENS(i) | ||
349 | gui_textarea_clear(&screens[i]); | ||
350 | } | 336 | } |
351 | } | 337 | } |
352 | gui_synclist_set_nb_items(&tree_lists, tc.filesindir); | 338 | gui_synclist_set_nb_items(&tree_lists, tc.filesindir); |