Small fixes (mostly QML warnings and the like).

done as part of CURA-9422
This commit is contained in:
Remco Burema 2022-08-31 14:15:05 +02:00
parent 4ea437ba28
commit afeec473f6
4 changed files with 4 additions and 6 deletions

View file

@ -90,7 +90,6 @@ class GlobalStack(CuraContainerStack):
@pyqtProperty("QVariantList", notify=configuredConnectionTypesChanged)
def configuredConnectionTypes(self) -> List[int]:
"""The configured connection types can be used to find out if the global
stack is configured to be connected with a printer, without having to
know all the details as to how this is exactly done (and without
actually setting the stack to be active).

View file

@ -153,7 +153,7 @@ Item
MonitorPrinterPill
{
text: printJob.configuration.printerType
text: printJob ? printJob.configuration.printerType : ""
}
}
}
@ -173,7 +173,7 @@ Item
id: printerConfiguration
anchors.verticalCenter: parent.verticalCenter
buildplate: catalog.i18nc("@label", "Glass")
configurations: base.printJob.configuration.extruderConfigurations
configurations: base.printJob ? base.printJob.configuration.extruderConfigurations : null
height: Math.round(72 * screenScaleFactor) // TODO: Theme!
}

View file

@ -68,11 +68,11 @@ Button
top: buttonText.top
bottom: buttonText.bottom
}
visible: model.isAbstractMachine
visible: model.isAbstractMachine ? model.isAbstractMachine : false
UM.Label
{
text: model.machineCount
text: model.machineCount ? model.machineCount : ""
anchors.centerIn: parent
font: UM.Theme.getFont("default_bold")
}

View file

@ -223,7 +223,6 @@ Cura.ExpandablePopup
id: buttonRow
anchors.bottom: parent.bottom
anchors.horizontalCenter: parent.horizontalCenter
anchors.left: parent.left
anchors.right: parent.right