[LH4180] [BETA 26] Compile > Imported/duplicated Formats behave oddly when a duplicate name is found

Steps to reproduce:

  1. Open a project or create a new one from a template
  2. Open the compile window
  3. If you have any project formats, delete them.
  4. Select a standard scrivener format such as Paperback (6" x 9"), right click and select Duplicate and Edit Format
  5. Click save to close the format window. You should now have a copy of the format under your project formats.
  6. Repeat step 4 and select the same format as before. Click save to close the window.
  7. Note that a new format is not created (it is but not displayed yet).
  8. Double click the format created in step 4-5 to edit the format
  9. In the format name field, remove the “Copy” from the name and click Save to close
  10. You’ll note that the second format now appears.

This can be repeated indefinitely but only two formats will be displayed at any given time. As soon as one of them is edited to include “Copy” in the name, the second one will disappear again. This bug is related to another bug where deleting a format doesn’t have any affect. If multiples are present but not displayed, the invisible ones will be deleted first, giving the appearance that it’s not working.

This has been filed. Thanks.