Don't render todo list and prevent focusing it

This is a very quick and dirty fix, but I can strip out the entire todo
functionality later.
This commit is contained in:
FichteFoll 2021-09-01 15:35:58 +02:00
parent 27d19d91d0
commit 93857d0675
2 changed files with 3 additions and 9 deletions

View File

@ -23,9 +23,9 @@ pub fn layout(r: Rect) -> Vec<Rect> {
.direction(Direction::Vertical)
.constraints(
[
Constraint::Percentage(0),
Constraint::Percentage(60),
Constraint::Percentage(40),
Constraint::Percentage(40),
Constraint::Percentage(20),
]
.as_ref(),
)

View File

@ -39,7 +39,7 @@ impl Tracc {
times: TimeSheet::open_or_create(JSON_PATH_TIME),
terminal,
input_mode: Mode::Normal,
focus: Focus::Top,
focus: Focus::Bottom,
}
}
@ -87,12 +87,6 @@ impl Tracc {
}
}
Key::Char('p') => with_focused!(ListView::paste),
Key::Char('\t') => {
self.focus = match self.focus {
Focus::Top => Focus::Bottom,
Focus::Bottom => Focus::Top,
}
}
_ => (),
},
Mode::Insert => match input {