diff options
| author | Stuart Skelton <stuarts@broadbean.com> | 2017-08-08 22:33:17 +0100 |
|---|---|---|
| committer | Stuart Skelton <stuarts@broadbean.com> | 2017-08-08 22:33:17 +0100 |
| commit | 0ea264713b5f87b7f1a6aaa7d9529d8bc343101b (patch) | |
| tree | 91ac5cb74470263240b5754f1fe726852a362f60 /todolist | |
| parent | e4fc41d2ca95e5fad0eeb9bc40996e2687f78d06 (diff) | |
Fix a missed 't.Archive=true' to Archived()
Diffstat (limited to 'todolist')
| -rw-r--r-- | todolist/app.go | 2 |
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() |
