summaryrefslogtreecommitdiffstats
path: root/src/widget.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/widget.rs')
-rw-r--r--src/widget.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/widget.rs b/src/widget.rs
index c106f7e..2f1d54c 100644
--- a/src/widget.rs
+++ b/src/widget.rs
@@ -350,7 +350,10 @@ pub trait Widget {
};
self.set_coordinates(&ani_coords).log();
let buffer = self.get_drawlist()?;
- self.write_to_screen(&buffer).log();
+
+ if !animator.as_ref()?.is_stale()? {
+ self.write_to_screen(&buffer).log();
+ }
std::thread::sleep(pause);
}