mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 19:51:26 -05:00
7eb1280a7f
Rows of the Profile drop-down below Uniform can be dragged to a new
place, and stroke.widthProfile.move {name, to} does the same from a
script. Uniform stays first. The order is kept with the preferences
(widthProfileOrder) and is stored only while it differs from the
default one.
- move takes a profile's id or its label, and refuses Uniform, an
unknown name and a `to` past the last row.
- Moving a profile to the place it already has changes nothing.
- A deleted saved profile leaves the order, so one saved later under
the same name goes to the end of the list.
- Reset Profiles also puts the built-ins back in their first order,
and is enabled when only the order changed.
Ported from the reordering part of #10920.
Co-authored-by: erolkarino <erol@kuzeyyayinlari.com>