Use Borrow for both options and selected in PickList

This commit is contained in:
Héctor Ramón Jiménez 2024-02-14 03:54:40 +01:00
parent 52e207b89b
commit f53cfb8efa
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 46 additions and 48 deletions

View file

@ -60,11 +60,7 @@ impl Sandbox for QRGenerator {
let choose_theme = row![
text("Theme:"),
pick_list(
Theme::ALL,
Some(self.theme.clone()),
Message::ThemeChanged,
)
pick_list(Theme::ALL, Some(&self.theme), Message::ThemeChanged,)
]
.spacing(10)
.align_items(Alignment::Center);