summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-11-21 23:05:01 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2022-11-21 23:05:01 -0500
commit19aa4ca276dc39422cb645ed46fe738c7e08934e (patch)
tree7dd4b990e2c5d881e06f8a1602214dc9ea858b5a
parentd077fec5f1c4f7107cde44e816e8cc8c5f5b0833 (diff)
downloadrockbox-19aa4ca276.tar.gz
rockbox-19aa4ca276.zip
tree.c spell names AFTER voicing filetype
Change-Id: Iff2102c2993593f7b3c24f131c0f67f45c870bc7
-rw-r--r--apps/tree.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c
index af177e3c1a..5085405002 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -248,6 +248,7 @@ static int tree_voice_cb(int selected_item, void * data)
did_clip = false;
}
}
+ bool spell_name = false;
if(!did_clip)
{
/* say the number or spell if required or as a fallback */
@@ -265,7 +266,7 @@ static int tree_voice_cb(int selected_item, void * data)
if(is_dir)
talk_id(VOICE_DIR, true);
}
- talk_spell(name, true);
+ spell_name = true;
break;
}
}
@@ -276,6 +277,10 @@ static int tree_voice_cb(int selected_item, void * data)
say_filetype(attr);
}
+ /* spell name AFTER voicing filetype */
+ if (spell_name)
+ talk_spell(name, true);
+
return 0;
}