thenlevy / ensnano

ENSnano, a 3D graphical application for DNA nanostructures.
GNU General Public License v3.0
49 stars 6 forks source link

Saving opened cadnano file will overwrite file #15

Closed Sebastian-Jung closed 2 years ago

Sebastian-Jung commented 2 years ago

This might not be a bug but it can be really bad for new users. How to reproduce:

thenlevy commented 2 years ago

That's the intended behavior but I agree that it should be changed. I did not realize that user could lose their cadnano file because of it.

Sebastian-Jung commented 2 years ago

Maybe an explicit Import function in addition to Open might be useful, this would also allow importing multiple files (from cadnano, scadnano) in one ensnano session.

thenlevy commented 2 years ago

I've pushed a path to the dev branch that fixes this problem. What it does is that a new file name is asked when saving if the current file name does not have the .ens extension.

Since this is quite critical we will soon release binaries that include this patch.

Regarding the import of multiple designs into one single ENSnano session, I agree that this can be useful, I will create a specific issue for that: #17