From fdbef5dc848aa52175d7ba243d5a0750689cd139 Mon Sep 17 00:00:00 2001 From: Till Theato Date: Wed, 18 Feb 2015 22:13:13 +0100 Subject: [PATCH] cr2hdr: Show message when done. --- contrib/cr2hdr.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/cr2hdr.lua b/contrib/cr2hdr.lua index b2d2328..f3eff7d 100644 --- a/contrib/cr2hdr.lua +++ b/contrib/cr2hdr.lua @@ -43,7 +43,7 @@ function file_imported(event, image) local filename = image.path .. "/" .. image.filename if processed_files[filename] then image.make_group_leader(image) - processed_files[filename] = nil + processed_files[filename] = false end end @@ -80,6 +80,9 @@ function convert_action_images(shortcut) return end end + local success_count = 0 + for _ in pairs(processed_files) do success_count = success_count + 1 end + darktable.print("Dual ISO conversion successful on " .. success_count .. "/" .. #images .. " images.") job.valid = false end