designSpaceRoboFontExtension icon indicating copy to clipboard operation
designSpaceRoboFontExtension copied to clipboard

Setting to allow for duplicate sources?

Open ryanbugden opened this issue 8 months ago • 4 comments

Right now, it's convenient that if you drop a bunch of sources in the Sources panel, DSE will only add non-duplicates.

Sometimes one might want this sort of setup, in which one source represents two spots in a designspace. Image

I wonder if there could be a checkbox setting somewhere to allow duplicates to make this possible in DSE.

Granted, the type of person who would do this is likely comfortable with editing a .designspace file by hand, and if one does so and reopens DSE, everything is fine. And it doesn't look like DSE has any "settings" yet. But just a thought.

ryanbugden avatar Apr 08 '25 20:04 ryanbugden

There are indeed good reasons to allow duplicates. I suppose DSE could just allow it. Or show a dialog with a question. I'd rather not add a preferences window.

LettError avatar Apr 09 '25 05:04 LettError

https://github.com/LettError/designSpaceRoboFontExtension/blob/f64c09d9af94e48c5bca023874418173a9fb93cd/DesignspaceEditor2.roboFontExt/lib/designspaceEditor/ui.py#L1503

I tested with this change and it allows dragging the same file multiple times. existingUFOPaths = []

LettError avatar Apr 09 '25 08:04 LettError

https://github.com/LettError/designSpaceRoboFontExtension/pull/116

LettError avatar Apr 09 '25 08:04 LettError

agree DSE must allow this by default!

  • no pref setting
  • maybe a popup warning while adding a source or highlighted in the list with an icon like somewhere?

typemytype avatar Apr 09 '25 12:04 typemytype