Spine-Toolbox icon indicating copy to clipboard operation
Spine-Toolbox copied to clipboard

DB editor "Copy name(s) as text" enabled for empty cells in parameter view

Open PiispaH opened this issue 1 year ago • 1 comments

The Copy name(s) as text -option from the hamburger menu of db editor is usually disabled when there is nothing to copy. When an empty cell in parameter view is selected the option becomes available and it just copies an empty string into the clipboard. Doesn't really matter much but to make things more consistent in the sense that if there is nothing to copy, don't allow the action, maybe also this case could be treated like nothing was selected.

PiispaH avatar Feb 02 '24 10:02 PiispaH

I would argue that an emtpy cell is something to copy - it's still information. Especially if that empty cell were itself contained within a broader selection, you would definitely want to copy it to preserve the structure of the data.

DillonJ avatar Feb 02 '24 11:02 DillonJ

If this would be implemented, it should not apply to copies of multiple cells, only when one cell is selected. But I think this is not worth implementing.

jkiviluo avatar Jun 01 '24 04:06 jkiviluo