Skip to content

Commit c70ebf4

Browse files
authored
Merge pull request #540 from wpferguson/fix_17914_apply_camera_style_to_raw
Ensure apply_camera_style is only applied to raw images
2 parents a39f6fe + 7e3c647 commit c70ebf4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

official/apply_camera_style.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ local CS <const> = dt.configuration.running_os == "windows" and "&" or ";"
6464
-- A P I C H E C K
6565
-- - - - - - - - - - - - - - - - - - - - - - - -
6666

67-
du.check_min_api_version("9.4.0", MODULE) -- styles use filmic V7 which appeared in darktable 4.4
67+
du.check_min_api_version("9.4.0", MODULE) -- camera styles added to darktable 5.0
6868

6969

7070
-- - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -477,7 +477,9 @@ dt.register_event(MODULE, "shortcut",
477477

478478
dt.register_event(MODULE, "post-import-image",
479479
function(event, image)
480-
table.insert(acs.imported_images, image)
480+
if image.is_raw then
481+
table.insert(acs.imported_images, image)
482+
end
481483
end
482484
)
483485

0 commit comments

Comments
 (0)