Change task naming for faster listing in future
This commit is contained in:
@@ -119,14 +119,16 @@ func (t *Task) AppendTags(tags []string) {
|
||||
t.Tags = append(t.Tags, tags...)
|
||||
}
|
||||
|
||||
func (t *Task) SetComplete(state bool) {
|
||||
func (t *Task) SetComplete(state bool) bool {
|
||||
t.touch()
|
||||
changed := t.Complete != state
|
||||
t.Complete = state
|
||||
if t.Complete {
|
||||
t.Completed = time.Now()
|
||||
} else {
|
||||
t.Completed = time.Time{}
|
||||
}
|
||||
return changed
|
||||
}
|
||||
|
||||
func (t *Task) SetPrio(prio int) {
|
||||
|
||||
Reference in New Issue
Block a user