aboutsummaryrefslogtreecommitdiff
path: root/src/gui/form
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/form')
-rw-r--r--src/gui/form/mod.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/form/mod.rs b/src/gui/form/mod.rs
index cc77a19..0b63dea 100644
--- a/src/gui/form/mod.rs
+++ b/src/gui/form/mod.rs
@@ -157,7 +157,12 @@ pub async fn show(app: &App, target: Target) {
);
category_dropdown.set_margin_bottom(10);
let selected = get_selected_category(&event, &app.categories).unwrap_or_else(|| "".to_string());
- category_dropdown.set_selected(dropdown_categories.iter().position(|d| d == &selected).unwrap_or(0) as u32);
+ category_dropdown.set_selected(
+ dropdown_categories
+ .iter()
+ .position(|d| d == &selected)
+ .unwrap_or(0) as u32,
+ );
column1.append(&utils::label("Catégorie"));
column1.append(&category_dropdown);