mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-22 10:21:39 -07:00
Document why we set endTime to the current date initially
Contributes to issue CURA-3161.
This commit is contained in:
parent
d3d36d47eb
commit
d705fb1d76
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue