diff --git a/crates/engine/src/commands.rs b/crates/engine/src/commands.rs index 76728ea2..04fc918c 100644 --- a/crates/engine/src/commands.rs +++ b/crates/engine/src/commands.rs @@ -193,9 +193,7 @@ pub fn check_enabled(spec: &CommandSpec, s: &Session) -> std::result::Result<(), (spec.enabled)(s) } -/// [`check_enabled`] for a run with `params`: a command that takes `layer` is checked as if the -/// layer it names were the selected one, so a row's own controls work with no layer selected -/// (after an undo, say). +/// [`check_enabled`] for a run with `params`, checking a command that takes `layer` as if the named layer were selected fn check_enabled_for(spec: &CommandSpec, s: &mut Session, params: &Value) -> std::result::Result<(), String> { let refused = match check_enabled(spec, s) { Ok(()) => return Ok(()),