Use Borrow for both options and selected in PickList
This commit is contained in:
parent
52e207b89b
commit
f53cfb8efa
5 changed files with 46 additions and 48 deletions
|
|
@ -88,11 +88,7 @@ impl Application for Layout {
|
|||
horizontal_space(Length::Fill),
|
||||
checkbox("Explain", self.explain)
|
||||
.on_toggle(Message::ExplainToggled),
|
||||
pick_list(
|
||||
Theme::ALL,
|
||||
Some(self.theme.clone()),
|
||||
Message::ThemeSelected
|
||||
),
|
||||
pick_list(Theme::ALL, Some(&self.theme), Message::ThemeSelected),
|
||||
]
|
||||
.spacing(20)
|
||||
.align_items(Alignment::Center);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue