official/apply_camera_sytle - ensure style is only applied to raw

images.  Fixed comment.
This commit is contained in:
Bill Ferguson
2024-12-01 12:27:16 -05:00
parent a39f6feba7
commit 7e3c6471ff

View File

@@ -64,7 +64,7 @@ local CS <const> = dt.configuration.running_os == "windows" and "&" or ";"
-- A P I C H E C K
-- - - - - - - - - - - - - - - - - - - - - - - -
du.check_min_api_version("9.4.0", MODULE) -- styles use filmic V7 which appeared in darktable 4.4
du.check_min_api_version("9.4.0", MODULE) -- camera styles added to darktable 5.0
-- - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -477,7 +477,9 @@ dt.register_event(MODULE, "shortcut",
dt.register_event(MODULE, "post-import-image",
function(event, image)
table.insert(acs.imported_images, image)
if image.is_raw then
table.insert(acs.imported_images, image)
end
end
)