Merge pull request #746 from betrusted-io/build-fixes

fix TTS target API change
This commit is contained in:
bunnie 2025-11-30 17:27:53 +03:00 committed by GitHub
commit 712ee68df5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -135,13 +135,11 @@ impl ActionApi for CheckBoxes {
#[cfg(feature = "tts")] #[cfg(feature = "tts")]
{ {
self.tts.tts_blocking(t!("checkbox.select_and_close_tts", locales::LANG)).unwrap(); self.tts.tts_blocking(t!("checkbox.select_and_close_tts", locales::LANG)).unwrap();
for item in self.action_payload.clone().payload().iter() { for name in self.action_payload.clone().payload().iter() {
if let Some(name) = item {
self.tts.tts_blocking(name.as_str()).unwrap(); self.tts.tts_blocking(name.as_str()).unwrap();
} }
} }
} }
}
// draw the "OK" line // draw the "OK" line
tv.text.clear(); tv.text.clear();
tv.bounds_computed = None; tv.bounds_computed = None;