[niepce: 29/34] library: when writing an XMP, add it to the bundles
- From: Hubert Figuière <hub src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [niepce: 29/34] library: when writing an XMP, add it to the bundles
- Date: Sun, 15 May 2022 02:54:05 +0000 (UTC)
commit 41c664699173a0efbc4ae627eb705e7f9d001949
Author: Hubert Figuière <hub figuiere net>
Date: Fri May 13 22:52:23 2022 -0400
library: when writing an XMP, add it to the bundles
crates/npc-engine/src/db/library.rs | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/crates/npc-engine/src/db/library.rs b/crates/npc-engine/src/db/library.rs
index 545b2ba..60af15e 100644
--- a/crates/npc-engine/src/db/library.rs
+++ b/crates/npc-engine/src/db/library.rs
@@ -1116,7 +1116,14 @@ impl Library {
dbg_assert!(xmp_file_id > 0, "couldn't add xmp_file");
// XXX handle error
let res = self.add_xmp_sidecar_to_bundle(id, xmp_file_id);
- dbg_assert!(res.is_ok(), "addSidecarFileToBundle failed");
+ dbg_assert!(res.is_ok(), "add_xmp_sidecar_to_bundle failed");
+ let res = self.add_sidecar_fsfile_to_bundle(
+ id,
+ xmp_file_id,
+ Sidecar::Xmp(PathBuf::new()).to_int(),
+ "xmp",
+ );
+ dbg_assert!(res.is_ok(), "add_sidecar_fsfile_to_bundle failed");
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]