Fixed screen reader regression in CLI (#11860)

The `tui.animations` switch should gate all animations in the TUI, but a
recent change introduced a regression that didn't include the gate. This
makes it difficult to use the TUI with a screen reader.

This fix addresses #11856
This commit is contained in:
Eric Traut
2026-02-16 18:17:52 -08:00
committed by GitHub
Unverified
parent b37555dd75
commit 08f689843f
+5 -3
View File
@@ -218,9 +218,11 @@ impl Renderable for StatusIndicatorWidget {
return;
}
// Schedule next animation frame.
self.frame_requester
.schedule_frame_in(Duration::from_millis(32));
if self.animations_enabled {
// Schedule next animation frame.
self.frame_requester
.schedule_frame_in(Duration::from_millis(32));
}
let now = Instant::now();
let elapsed_duration = self.elapsed_duration_at(now);
let pretty_elapsed = fmt_elapsed_compact(elapsed_duration.as_secs());