Compare commits

1 Commits

Author SHA1 Message Date
c7b255be4f fix full redraw modules not cleaning up 2025-11-17 21:11:35 -05:00

View File

@@ -102,7 +102,11 @@ impl Ui {
}
pub fn redraw_all(&mut self) {
self.data.active.clear();
for (_, inst) in self.data.active.drain() {
for m in self.data.modules.iter_mut() {
m.on_undraw(&inst);
}
}
// free before bc nothing should exist
self.free();
let mut ctx = PainterCtx::new(&mut self.data);