aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/app.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2017-08-10 15:37:39 -0400
committerGitHub <noreply@github.com>2017-08-10 15:37:39 -0400
commiteeb9c30c6ba39b1fe3a1f51cf244274ea6d521fc (patch)
tree91ac5cb74470263240b5754f1fe726852a362f60 /todolist/app.go
parente4fc41d2ca95e5fad0eeb9bc40996e2687f78d06 (diff)
parent0ea264713b5f87b7f1a6aaa7d9529d8bc343101b (diff)
Merge pull request #86 from stuartskelton/fix_missed_archived
Fix a missed 't.Archive=true' to Archived()
Diffstat (limited to 'todolist/app.go')
-rw-r--r--todolist/app.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/todolist/app.go b/todolist/app.go
index 42b1361..367cc2f 100644
--- a/todolist/app.go
+++ b/todolist/app.go
@@ -136,7 +136,7 @@ func (a *App) ArchiveCompleted() {
a.Load()
for _, todo := range a.TodoList.Todos() {
if todo.Completed {
- todo.Archived = true
+ todo.Archive()
}
}
a.Save()