Use egui's own redraw forcing function
This commit is contained in:
parent
51b8f64092
commit
347cbae430
1 changed files with 2 additions and 3 deletions
|
@ -162,15 +162,14 @@ where
|
||||||
},
|
},
|
||||||
state,
|
state,
|
||||||
|_, _, _| {},
|
|_, _, _| {},
|
||||||
move |egui_ctx, queue, state| {
|
move |egui_ctx, _queue, state| {
|
||||||
let setter = ParamSetter::new(context.as_ref());
|
let setter = ParamSetter::new(context.as_ref());
|
||||||
|
|
||||||
// For now, just always redraw. Most plugin GUIs have meters, and those almost always
|
// For now, just always redraw. Most plugin GUIs have meters, and those almost always
|
||||||
// need a redraw. Later we can try to be a bit more sophisticated about this. Without
|
// need a redraw. Later we can try to be a bit more sophisticated about this. Without
|
||||||
// this we would also have a blank GUI when it gets first opened because most DAWs open
|
// this we would also have a blank GUI when it gets first opened because most DAWs open
|
||||||
// their GUI while the window is still unmapped.
|
// their GUI while the window is still unmapped.
|
||||||
// TODO: Are there other useful parts of this queue we could pass to thep lugin?
|
egui_ctx.request_repaint();
|
||||||
queue.request_repaint();
|
|
||||||
(update)(egui_ctx, &setter, &mut state.write());
|
(update)(egui_ctx, &setter, &mut state.write());
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue