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 Crisp {
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.clone(), self.params.editor_state.clone())
}

View File

@@ -126,7 +126,7 @@ impl Plugin for Diopser {
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(
editor::Data {
params: self.params.clone(),

View File

@@ -100,7 +100,7 @@ impl Plugin for Gain {
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>> {
let params = self.params.clone();
let peak_meter = self.peak_meter.clone();
create_egui_editor(

View File

@@ -97,7 +97,7 @@ impl Plugin for Gain {
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.clone(),
self.peak_meter.clone(),

View File

@@ -96,7 +96,7 @@ impl Plugin for Gain {
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.clone(),
self.peak_meter.clone(),

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 {