Feat: cleanup

This commit is contained in:
2026-02-22 13:28:03 +01:00
parent 3093b40dbc
commit 3d552ec072
26 changed files with 213 additions and 181 deletions

View File

@@ -1,3 +1,5 @@
//! Application state: owns the project, editor context, and all UI/playback state.
mod clipboard;
mod dispatch;
mod editing;
@@ -54,8 +56,8 @@ pub struct App {
pub script_engine: ScriptEngine,
pub variables: Variables,
pub dict: Dictionary,
#[allow(dead_code)]
pub rng: Rng,
// Held to keep the Arc alive (shared with ScriptEngine).
pub _rng: Rng,
pub live_keys: Arc<LiveKeyState>,
pub clipboard: Option<arboard::Clipboard>,
pub copied_patterns: Option<Vec<Pattern>>,
@@ -108,7 +110,7 @@ impl App {
metrics: Metrics::default(),
variables,
dict,
rng,
_rng: rng,
live_keys,
script_engine,
clipboard: arboard::Clipboard::new().ok(),