mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 02:35:53 +08: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
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user