Repository navigation
Dropping photos with XMP sidecars no longer imports the sidecars as presets (#936) - #943
Merged
Merged
Conversation
Member
|
Landed in #975 (fixes #936). Thank you, @MarekSpodBiedry! #728, #666 and #665 are in the next batches. If you haven't already, come and join us on Discord: https://discord.gg/artcraft Generated by Claude Code |
clydecbrown
pushed a commit
to clydecbrown/lightcraft
that referenced
this pull request
Nov 9, 2026
…6-11-09 Upstream intake round 3 (2026-11-09): 11 adopted
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #936.
Dropping files on the window sent every
.xmptofile.importPresets, so photos dropped together with their sidecars (for example from Photo Mechanic) each added a preset.The drop handler now uses
split_presets. An.xmpthat sits in the same folder as a dropped photo of the same name (IMG_1.xmporIMG_1.CR2.xmpnext toIMG_1.CR2, case-insensitive) is treated as that photo's sidecar. It is not imported as a preset, and the photo import still reads it as before. An.xmpdropped without a matching photo (a real XMP preset) is imported as a preset, as before. Other preset formats are unchanged.crates/ui-egui/src/lib.rs:split_presetsreplaces thepartition(is_preset_file)in the window drop handler. This is the only place where dropped files go to the preset importer. The browser build sends dropped files only tolibrary.import.docs/parity-checklist.md(LR-IMP-PROFILES): notes that drag & drop leaves sidecars out.photo_sidecars_are_not_presets: stem and full-name sidecars, an upper-case.XMP, a preset beside the photos, and a same-named.xmpin another folder (still a preset).