mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-07 01:56:45 +01:00
implement non-save options in modals
This commit is contained in:
parent
ef0213003a
commit
72607e482c
3 changed files with 14 additions and 4 deletions
|
|
@ -15,7 +15,12 @@ impl Taggart {
|
|||
press!(Right) => { self.mode = Some(Mode::Save {
|
||||
value: (value + 1) % 3
|
||||
}) },
|
||||
press!(Enter) => todo!(),
|
||||
press!(Enter) => match value {
|
||||
0 => { self.tasks = vec![]; self.mode = None; },
|
||||
1 => { self.mode = None },
|
||||
2 => todo!(),
|
||||
_ => unreachable!(),
|
||||
},
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue