mirror of
https://codeberg.org/unspeaker/perch.git
synced 2025-12-07 10:06:44 +01:00
remove Task, count changes explicitly
This commit is contained in:
parent
4de94beafb
commit
84f183ab84
7 changed files with 23 additions and 40 deletions
|
|
@ -11,8 +11,14 @@ impl Taggart {
|
|||
choice: (choice + 1) % 3
|
||||
}) },
|
||||
press!(Enter) => match choice {
|
||||
0 => { self.tasks = vec![]; self.mode = None; },
|
||||
1 => { self.mode = None },
|
||||
0 => {
|
||||
todo!("clear modified_tag");
|
||||
//self.tasks = vec![];
|
||||
self.mode = None;
|
||||
},
|
||||
1 => {
|
||||
self.mode = None
|
||||
},
|
||||
2 => todo!(),
|
||||
_ => unreachable!(),
|
||||
},
|
||||
|
|
@ -20,7 +26,7 @@ impl Taggart {
|
|||
}
|
||||
}
|
||||
pub fn save_begin (&mut self) {
|
||||
if self.tasks.len() > 0 {
|
||||
if self.changes > 0 {
|
||||
self.mode = Some(Mode::Save { choice: 1 })
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue