mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-08-08 09:08:47 +00:00
fix: actually save basalt repo and path in profile editor
This commit is contained in:
parent
c140d191c9
commit
cd731d2e8e
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
})
|
||||
),
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue