Functionality properties (canPause, canPreHeatBed, etc) are now in the Controller.

It's actually up to the controller to say something about this, so this location makes more sense

CL-541
This commit is contained in:
Jaime van Kessel 2017-11-21 16:59:17 +01:00
parent 0fe91db636
commit f987e6d977
3 changed files with 20 additions and 11 deletions

View file

@ -229,6 +229,10 @@ Item
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()
{
if(printerModel != null && !printerModel.canPreHeatBed)
{
return // Nothing to do, printer cant preheat at all!
}
preheatCountdown.text = ""
if (printerModel != null)
{