perfomance changes

This commit is contained in:
2024-11-22 11:29:00 +01:00
parent cc0ea4a9f5
commit 7f1437e779
4 changed files with 18 additions and 9 deletions
+4
View File
@@ -216,6 +216,7 @@ pub fn convert<T>(widget: &mut Box<dyn ElementWidget>) -> &mut Box<T> {
pub enum Command {
Exit,
Render,
GetElementById(String),
}
@@ -240,4 +241,7 @@ impl Document {
None
}
}
pub fn render(&self) {
self.cmd_sender.send(Command::Render).unwrap();
}
}