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
repeat: true
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()
{
var now = new Date();