Take &mut self for editor() and task_executor()

This commit is contained in:
Robbert van der Helm
2023-04-24 14:51:40 +02:00
parent 44476ad696
commit 808782df05
11 changed files with 46 additions and 21 deletions

View File

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