mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-22 18:41:27 +01:00
layers: LayersEvent::rename builds a committed rename outside the crate
This commit is contained in:
1 parent
aa44f62c8b
commit
2f27abb014
1 file changed
+5
@@ -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 }
|
||||
|
||||
Reference in new issue
Block a user