Fix #2723 Multiple images in the same imare project can overwrite each other on save

This commit is contained in:
JannisX11 2025-03-19 23:28:38 +01:00
parent 7c29703b3c
commit c515592598
2 changed files with 4 additions and 2 deletions

View File

@ -1,7 +1,7 @@
(function() {
let codec = new Codec('image', {
name: tl('format.name'),
name: tl('format.image'),
extension: 'png',
remember: true,
load_filter: {

View File

@ -576,7 +576,9 @@ BARS.defineActions(function() {
Codecs.project.write(Codecs.project.compile(), Project.save_path);
}
if (Project.export_path && export_codec?.compile) {
export_codec.write(export_codec.compile(), Project.export_path)
if (export_codec.id != 'image') {
export_codec.write(export_codec.compile(), Project.export_path)
}
} else if (export_codec?.export && !Project.save_path) {
if (export_codec.id === 'project' || settings.dialog_save_codec.value == false) {