Fix gtk tags output

This commit is contained in:
Alexander Rosenberg 2024-04-27 23:49:04 -07:00
parent 3de24bc47f
commit 18aa509c73
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -135,7 +135,9 @@ impl Serialize for Env {
name_id_map.reserve(self.output_names.len()); name_id_map.reserve(self.output_names.len());
let mut id = 0; let mut id = 0;
for (_, value) in &self.output_names { for (_, value) in &self.output_names {
name_id_map.insert(value, id); if !name_id_map.contains_key(value.as_str()) {
name_id_map.insert(value, id);
}
id += 1; id += 1;
} }
state.serialize_field("gtk_ids", &name_id_map)?; state.serialize_field("gtk_ids", &name_id_map)?;