fix full redraw modules not cleaning up
This commit is contained in:
1 parent
955e6b7588
commit
c7b255be4f
1 file changed
+5
-1
+5
-1
@@ -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