Merge pull request #583 from betrusted-io/tts-fixup

fix up a tts bug
This commit is contained in:
bunnie 2024-09-23 23:03:05 +08:00 committed by GitHub
commit 32c5bad47c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -130,7 +130,7 @@ impl ActionApi for CheckBoxes {
#[cfg(feature = "tts")]
{
self.tts.tts_blocking(t!("checkbox.select_and_close_tts", locales::LANG)).unwrap();
for item in self.action_payload.payload().iter() {
for item in self.action_payload.clone().payload().iter() {
if let Some(name) = item {
self.tts.tts_blocking(name.as_str()).unwrap();
}