shell: Refresh Title in SSD

This commit is contained in:
Victoria Brekenfeld 2023-03-06 19:26:26 +01:00
parent a2d28ec7ba
commit a099af394b
2 changed files with 25 additions and 2 deletions

View file

@ -227,6 +227,14 @@ impl<P: Program + Send + 'static> IcedElement<P> {
}
internal_ref.update(true);
}
pub fn force_update(&self) {
let mut internal = self.0.lock().unwrap();
internal.update(true);
for (_buffer, ref mut needs_redraw) in internal.buffers.values_mut() {
*needs_redraw = true;
}
}
}
impl<P: Program + Send + 'static> IcedElementInternal<P> {