layers: LayersEvent::rename builds a committed rename outside the crate

This commit is contained in:
bflatastic committed 2026-11-22 04:34:28 +07:00
1 parent aa44f62c8b
commit 2f27abb014
1 file changed
+5
+5
View File
@@ -193,6 +193,11 @@ impl<K> LayersEvent<K> {
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<String>) -> 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 }