fix(deep-link): unnecessary second MimeType section removal

pull/2844/head
Brad 4 days ago
parent 218ec686bb
commit 06e26a56a7
No known key found for this signature in database
GPG Key ID: A2DE32BF0B799596

@ -308,7 +308,6 @@ mod imp {
let old_mimes = section.remove("MimeType").unwrap_or_default(); let old_mimes = section.remove("MimeType").unwrap_or_default();
if !old_mimes.split(';').any(|mime| mime == mime_type) { if !old_mimes.split(';').any(|mime| mime == mime_type) {
section.remove("MimeType");
section.append("MimeType", format!("{mime_type};{}", old_mimes)); section.append("MimeType", format!("{mime_type};{}", old_mimes));
desktop_file.write_to_file(&target_file)?; desktop_file.write_to_file(&target_file)?;
} }

Loading…
Cancel
Save