mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Take &mut self for editor() and task_executor()
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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(),
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user