mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-06 09:36:42 +01:00
allow for multisetters
This commit is contained in:
parent
13600a5837
commit
1a00ef1ff6
3 changed files with 91 additions and 56 deletions
|
|
@ -84,9 +84,9 @@ impl Taggart {
|
|||
if let Some((_edit_index, value)) = &self.editing
|
||||
&& let Some(column) = self.columns.0.get(self.column)
|
||||
&& let Some(setter) = &column.setter
|
||||
&& let Some(entry) = self.paths.get_mut(self.cursor)
|
||||
&& self.paths.get_mut(self.cursor).is_some()
|
||||
{
|
||||
setter(entry, value)
|
||||
setter(self.paths.as_mut_slice(), self.cursor, value)
|
||||
}
|
||||
self.editing = None;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue