Document why we set endTime to the current date initially

Contributes to issue CURA-3161.
This commit is contained in:
Ghostkeeper 2017-02-07 16:24:28 +01:00
parent d3d36d47eb
commit d705fb1d76
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -274,7 +274,7 @@ Column
running: false running: false
repeat: true repeat: true
onTriggered: update() onTriggered: update()
property var endTime: new Date() property var endTime: new Date() //Set initial endTime to be the current date, so that the endTime has initially already passed and the timer text becomes invisible if you were to update.
function update() function update()
{ {
var now = new Date(); var now = new Date();