Fix a bug when asking to move an issue to the state it's already in.
This commit is contained in:
parent
08dfbde57f
commit
567c2d2178
@ -230,7 +230,7 @@ proc changeState*(issue: Issue, tasksDir: string, newState: IssueState) =
|
||||
let oldFilepath = issue.filepath
|
||||
if newState == Done: issue.setDateTime("completed", getTime().local)
|
||||
tasksDir.store(issue, newState)
|
||||
removeFile(oldFilepath)
|
||||
if oldFilePath != issue.filepath: removeFile(oldFilepath)
|
||||
|
||||
proc delete*(issue: Issue) = removeFile(issue.filepath)
|
||||
|
||||
|
@ -1 +1 @@
|
||||
const PIT_VERSION = "4.4.0"
|
||||
const PIT_VERSION = "4.4.1"
|
||||
|
Loading…
x
Reference in New Issue
Block a user