Fix a bug when asking to move an issue to the state it's already in.

This commit is contained in:
Jonathan Bernard 2018-06-25 11:40:25 -05:00
parent 08dfbde57f
commit 567c2d2178
2 changed files with 2 additions and 2 deletions

View File

@ -230,7 +230,7 @@ proc changeState*(issue: Issue, tasksDir: string, newState: IssueState) =
let oldFilepath = issue.filepath let oldFilepath = issue.filepath
if newState == Done: issue.setDateTime("completed", getTime().local) if newState == Done: issue.setDateTime("completed", getTime().local)
tasksDir.store(issue, newState) tasksDir.store(issue, newState)
removeFile(oldFilepath) if oldFilePath != issue.filepath: removeFile(oldFilepath)
proc delete*(issue: Issue) = removeFile(issue.filepath) proc delete*(issue: Issue) = removeFile(issue.filepath)

View File

@ -1 +1 @@
const PIT_VERSION = "4.4.0" const PIT_VERSION = "4.4.1"