Merge pull request #540 from wpferguson/fix_17914_apply_camera_style_to_raw

Ensure apply_camera_style is only applied to raw images
This commit is contained in:
wpferguson
2024-12-01 12:50:23 -05:00
committed by GitHub

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
)