fix full redraw modules not cleaning up
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user