diff options
| author | ozpv <39195175+ozpv@users.noreply.github.com> | 2026-05-16 03:06:33 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-16 03:06:33 -0500 |
| commit | 31b83a1daf401e41a1c73484c0aec3016b795e3f (patch) | |
| tree | 85c06870b172d11a0602f21ddb2bf3c25c686997 /src/gui.rs | |
| parent | 7901b970d14c86d00a80347471bf8e071d39b83e (diff) | |
latency
Diffstat (limited to 'src/gui.rs')
| -rw-r--r-- | src/gui.rs | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); }, |
