mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
tree.c move voice filetypes to its own conditional
Change-Id: I3a5171378355e64192de1e29f62d52e03771afe4
This commit is contained in:
parent
efdc6feddb
commit
d077fec5f1
1 changed files with 7 additions and 5 deletions
12
apps/tree.c
12
apps/tree.c
|
|
@ -257,9 +257,6 @@ static int tree_voice_cb(int selected_item, void * data)
|
|||
talk_id(is_dir ? VOICE_DIR : VOICE_FILE, false);
|
||||
talk_number(selected_item+1 - (is_dir ? 0 : local_tc->dirsindir),
|
||||
true);
|
||||
if(global_settings.talk_filetype
|
||||
&& !is_dir && *local_tc->dirfilter < NUM_FILTER_MODES)
|
||||
say_filetype(attr);
|
||||
break;
|
||||
case 2: /* spelled */
|
||||
talk_shutup();
|
||||
|
|
@ -267,13 +264,18 @@ static int tree_voice_cb(int selected_item, void * data)
|
|||
{
|
||||
if(is_dir)
|
||||
talk_id(VOICE_DIR, true);
|
||||
else if(*local_tc->dirfilter < NUM_FILTER_MODES)
|
||||
say_filetype(attr);
|
||||
}
|
||||
talk_spell(name, true);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(global_settings.talk_filetype && !is_dir
|
||||
&& *local_tc->dirfilter < NUM_FILTER_MODES)
|
||||
{
|
||||
say_filetype(attr);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue