diff --git a/crates/layers/src/ui/panel/events.rs b/crates/layers/src/ui/panel/events.rs index ef2b84b3f..02c4e9c73 100644 --- a/crates/layers/src/ui/panel/events.rs +++ b/crates/layers/src/ui/panel/events.rs @@ -193,6 +193,11 @@ impl LayersEvent { Self::Activate { row, on } } + /// A committed rename of `layer` to `text`, which the panel gives trimmed, not empty and not the unchanged name. + pub fn rename(layer: K, text: impl Into) -> Self { + Self::Rename { layer, text: text.into() } + } + /// A layer's effects and Smart Filter rows asked to open or close. pub fn fx_open(layer: K, open: bool, all: bool) -> Self { Self::FxOpen { layer, open, all }