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 09:40:57 +05:30 committed by GitHub
parent 379931a504
commit 2f44b156d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -1408,8 +1408,8 @@ impl DocumentMessageHandler {
modes
.iter()
.map(|&blend_mode| {
MenuListEntry::new(blend_mode.to_string())
.value(blend_mode.to_string())
MenuListEntry::new(format!("{blend_mode:?}"))
.label(blend_mode.to_string())
.on_update(move |_| DocumentMessage::SetBlendModeForSelectedLayers { blend_mode }.into())
})
.collect()