From 31b83a1daf401e41a1c73484c0aec3016b795e3f Mon Sep 17 00:00:00 2001 From: ozpv <39195175+ozpv@users.noreply.github.com> Date: Sat, 16 May 2026 03:06:33 -0500 Subject: latency --- src/gui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui.rs') diff --git a/src/gui.rs b/src/gui.rs index 8ab11b4..310fbef 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -42,7 +42,7 @@ pub struct RetainPluginGui { impl RetainPluginGui { /// Creates a new GUI window, and embeds it into the given `parent`. - pub fn new(parent: Window<'_>, state: &RetainPluginShared) -> Self { + pub fn new(parent: Window<'_>, plugin_state: &RetainPluginShared) -> Self { let settings = WindowOpenOptions { title: "Retain".to_string(), size: Size::new(1000.0, 500.0), @@ -56,7 +56,7 @@ impl RetainPluginGui { &parent, settings, GraphicsConfig::default(), - AppState::new(&state.params), + AppState::new(&plugin_state.params), move |egui_ctx: &Context, _queue: &mut Queue, _state: &mut AppState| { tx.send(egui_ctx.clone()).unwrap(); }, -- cgit v1.2.3