mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-01 13:47:21 -06:00
The Symbols panel's Delete Symbol button and menu item now ask before deleting. A symbol no instance uses gets "Delete the selected symbol?" with Yes and No. A symbol with placed instances gets Expand Instances, which turns the instances into ordinary art, Delete Instances, which removes them, and Cancel; either Instances button deletes the symbol in one undo step. Alt-click on the button deletes an unused symbol at once and still asks about one with instances. The question is bound to the document it was asked in: once another document is active, or the symbol is gone, Yes deletes nothing, and a symbol that gained instances while the question was open gets the in-use question instead. symbol.delete itself does not ask. The shared dialog frame takes a Cancel label (DialogSpec::cancel) for the No button. The new strings have rows in every catalog.