summaryrefslogtreecommitdiff
path: root/src/gui.rs
diff options
context:
space:
mode:
authorozpv <39195175+ozpv@users.noreply.github.com>2026-05-16 03:06:33 -0500
committerGitHub <noreply@github.com>2026-05-16 03:06:33 -0500
commit31b83a1daf401e41a1c73484c0aec3016b795e3f (patch)
tree85c06870b172d11a0602f21ddb2bf3c25c686997 /src/gui.rs
parent7901b970d14c86d00a80347471bf8e071d39b83e (diff)
latency
Diffstat (limited to 'src/gui.rs')
-rw-r--r--src/gui.rs4
1 files changed, 2 insertions, 2 deletions
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();
},