Review: Lock and Hide › All Artwork Above use Selection::deselect_uneditable; ROADMAP (#1109)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
bflatastic
2026-10-11 11:33:07 +07:00
co-authored by Claude Opus 5.5
parent cd34e4097a
commit 4d52b043cf
3 changed files with 5 additions and 8 deletions
+1 -5
View File
@@ -238,11 +238,7 @@ fn above(s: &mut Session, lock: bool) -> Result<Value> {
}
}
}
// Hidden or locked content can't stay selected.
let hidden: Vec<NodeId> = sel.objects.iter().copied().filter(|o| !d.is_editable(*o)).collect();
for h in hidden {
sel.remove(h);
}
sel.deselect_uneditable(d);
Ok(())
})?;
Ok(json!({ "count": n }))