From cd731d2e8eaf26df866c07158cb3ce6b1ca338c6 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Mon, 13 May 2024 14:36:09 +0200 Subject: [PATCH] fix: actually save basalt repo and path in profile editor --- src/ui/profile_editor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/profile_editor.rs b/src/ui/profile_editor.rs index 1d8f856..3233860 100644 --- a/src/ui/profile_editor.rs +++ b/src/ui/profile_editor.rs @@ -318,7 +318,7 @@ impl SimpleComponent for ProfileEditor { model.profile.borrow().features.basalt.repo.clone().unwrap_or_default().as_str(), clone!(@strong prof => move |row| { let n_val = row.text().to_string(); - prof.borrow_mut().features.basalt.repo = n_val.is_empty().then_some(n_val); + prof.borrow_mut().features.basalt.repo = (!n_val.is_empty()).then_some(n_val); }) ), add: &entry_row( @@ -326,7 +326,7 @@ impl SimpleComponent for ProfileEditor { model.profile.borrow().features.basalt.branch.clone().unwrap_or_default().as_str(), clone!(@strong prof => move |row| { let n_val = row.text().to_string(); - prof.borrow_mut().features.basalt.branch = n_val.is_empty().then_some(n_val); + prof.borrow_mut().features.basalt.branch = (!n_val.is_empty()).then_some(n_val); }) ), },