From d705fb1d763e3f1065c7774cb4ed74d35927d3d4 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 7 Feb 2017 16:24:28 +0100 Subject: [PATCH] Document why we set endTime to the current date initially Contributes to issue CURA-3161. --- resources/qml/PrintMonitor.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/qml/PrintMonitor.qml b/resources/qml/PrintMonitor.qml index 9bc30f324e..0a34eb8f31 100644 --- a/resources/qml/PrintMonitor.qml +++ b/resources/qml/PrintMonitor.qml @@ -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();