mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-22 09:38:12 +08:00
Fix dropdown keyboard movement bug (#1630)
* Add a value to all `MenuListEntry` * cargo fmt * Make `value` as constructor in `MenuListEntry` * Make `value` as constructor in `RadioEntryData`
This commit is contained in:
@@ -89,7 +89,7 @@ impl ToolColorOptions {
|
||||
]
|
||||
.into_iter()
|
||||
.map(|(icon, tooltip, color_type)| {
|
||||
let mut entry = RadioEntryData::new("").tooltip(tooltip).icon(icon);
|
||||
let mut entry = RadioEntryData::new(format!("{color_type:?}")).tooltip(tooltip).icon(icon);
|
||||
entry.on_update = radio_callback(color_type);
|
||||
entry
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user