mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 11:17:49 -06:00
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:
parent
0fe91db636
commit
f987e6d977
3 changed files with 20 additions and 11 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue