Fix regression from #1630 for Layers panel blend modes missing labels (#1649)

Specify label instead of value
This commit is contained in:
Elbert Ronnie
2024-03-05 04:10:57 +00:00
committed by GitHub
parent 379931a504
commit 2f44b156d1
@@ -1408,8 +1408,8 @@ impl DocumentMessageHandler {
modes modes
.iter() .iter()
.map(|&blend_mode| { .map(|&blend_mode| {
MenuListEntry::new(blend_mode.to_string()) MenuListEntry::new(format!("{blend_mode:?}"))
.value(blend_mode.to_string()) .label(blend_mode.to_string())
.on_update(move |_| DocumentMessage::SetBlendModeForSelectedLayers { blend_mode }.into()) .on_update(move |_| DocumentMessage::SetBlendModeForSelectedLayers { blend_mode }.into())
}) })
.collect() .collect()