mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-06 17:46:42 +01:00
only enter edit mode for columns with setters
This commit is contained in:
parent
138bba99cb
commit
7c4451e46f
3 changed files with 33 additions and 30 deletions
|
|
@ -53,10 +53,6 @@ impl<'a> TreeTable<'a> {
|
|||
fn cell_cursor (&self, to: &mut TuiOut, xa: u16, x0: u16, x: u16, y: u16, w: u16) {
|
||||
let fill = [xa + x0, y, w, 1];
|
||||
to.fill_bg(fill, Self::BG_CELL);
|
||||
//if let Some((_index, value)) = &self.0.editing {
|
||||
//let x = xa + if x > 0 { x + 1 } else { x } as u16;
|
||||
//to.blit(&value, x, y, None)
|
||||
//}
|
||||
}
|
||||
fn row_data (&self, to: &mut TuiOut, entry: &Entry, row: usize, x: &mut u16) {
|
||||
for (column_index, Column { width, getter, .. }) in self.0.columns.0.iter().enumerate() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue