metadata: Merge memory_format correctly

This commit is contained in:
Sophie Herold 2024-08-05 23:43:52 +02:00
parent 8ddaf34e87
commit 7e227097ef
2 changed files with 5 additions and 0 deletions

View file

@ -110,6 +110,9 @@ impl Metadata {
if self.frame_info.is_none() {
self.frame_info = other.frame_info;
}
if self.memory_format.is_none() {
self.memory_format = other.memory_format;
}
}
pub fn mime_type(&self) -> Option<String> {

View file

@ -58,6 +58,8 @@ impl imp::LpImage {
pub async fn background_color_guess(&self) -> Option<gdk::RGBA> {
let obj = self.obj();
log::debug!("Determining background color");
if self.fixed_background_color.borrow().is_some() {
return None;
}