mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 22:13:58 -06:00
Fix error message when not connected in preheatUpdateTimer
Can't get preheatBedRemainingTime from null. Contributes to issue CURA-3161.
This commit is contained in:
parent
b002e367e3
commit
140d5204c3
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ Column
|
|||
{
|
||||
id: preheatUpdateTimer
|
||||
interval: 100 //Update every 100ms. You want to update every 1s, but then you have one timer for the updating running out of sync with the actual date timer and you might skip seconds.
|
||||
running: connectedPrinter.preheatBedRemainingTime != ""
|
||||
running: connectedPrinter != null && connectedPrinter.preheatBedRemainingTime != ""
|
||||
repeat: true
|
||||
onTriggered: update()
|
||||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue