mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-10-02 07:18: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:
@@ -80,9 +80,9 @@ pub type MenuListEntrySections = Vec<Vec<MenuListEntry>>;
|
||||
#[derivative(Debug, PartialEq)]
|
||||
#[widget_builder(not_widget_holder)]
|
||||
pub struct MenuListEntry {
|
||||
#[widget_builder(constructor)]
|
||||
pub value: String,
|
||||
|
||||
#[widget_builder(constructor)]
|
||||
pub label: String,
|
||||
|
||||
pub icon: String,
|
||||
@@ -294,9 +294,9 @@ pub struct RadioInput {
|
||||
#[derivative(Debug, PartialEq)]
|
||||
#[widget_builder(not_widget_holder)]
|
||||
pub struct RadioEntryData {
|
||||
#[widget_builder(constructor)]
|
||||
pub value: String,
|
||||
|
||||
#[widget_builder(constructor)]
|
||||
pub label: String,
|
||||
|
||||
pub icon: String,
|
||||
|
||||
Reference in New Issue
Block a user