Layers: in isolation mode the trash deletes no row outside the isolated art

Rows dragged to the trash before isolation mode started went to
layer.delete at once when none needed a question. ui.layerDelete now
returns an error for any row outside the isolated art, given or dropped,
and deletes nothing. OK in its question with no rows given deletes the
highlighted rows the panel lists, not every highlighted row.
This commit is contained in:
dotCooCoo
2026-11-18 18:12:34 -08:00
parent 8e98dbb310
commit 686fd46c9d
5 changed files with 28 additions and 13 deletions
+2 -2
View File
@@ -5875,8 +5875,8 @@ and `layerRows`, the rows highlighted in the panel.
the selected items and their artwork?"; OK deletes the rows it asked about in that document, one undo step, and
Cancel keeps them; an empty layer, a layer with only guides, and groups or objects alone are deleted at once; in
isolation mode, with no row highlighted, a current layer outside the isolated art is an error and nothing is deleted,
and OK deletes nothing when isolation mode started while it asked and a row it asked about is outside the isolated
art),
and so is a row outside it, given as `ids` or `id`, dropped on the trash or asked about before isolation mode
started),
`layer.locate {id?, layersOnly?}` (highlights the selected object's row, or with several selected the row of the
one frontmost in the stacking order, whatever order they were selected in; an `id` locates that object instead;
the panel opens the rows around it;