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

@@ -278,7 +278,7 @@ impl Plugin for SpectralCompressor {
self.params.clone()
}
fn editor(&self) -> Option<Box<dyn Editor>> {
fn editor(&self, _async_executor: AsyncExecutor<Self>) -> Option<Box<dyn Editor>> {
editor::create(self.params.clone(), self.editor_state.clone())
}