Add an AsyncExecutor for editor GUIs

This is decoupled form `GuiContext` as that would require invasive
changes all over the place.
This commit is contained in:
Robbert van der Helm
2022-10-22 15:05:39 +02:00
parent f3bb816cb5
commit c980576102
13 changed files with 91 additions and 30 deletions

View File

@@ -89,7 +89,7 @@ impl Plugin for Gain {
self.params.clone()
}
fn editor(&self) -> Option<Box<dyn Editor>> {
fn editor(&self, _async_executor: AsyncExecutor<Self>) -> Option<Box<dyn Editor>> {
let params = self.params.clone();
let peak_meter = self.peak_meter.clone();
create_egui_editor(