From ca4ea4bccff135ca3b843f4e0b3f2921293f5f34 Mon Sep 17 00:00:00 2001 From: Rebornim <250083243+Rebornim@users.noreply.github.com> Date: Sun, 29 Nov 2026 06:43:49 +0000 Subject: [PATCH] Layers: shorten the enabled-check comment --- crates/engine/src/commands.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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(()),