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) @pyqtProperty("QVariantList", notify=configuredConnectionTypesChanged)
def configuredConnectionTypes(self) -> List[int]: def configuredConnectionTypes(self) -> List[int]:
"""The configured connection types can be used to find out if the global """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 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 know all the details as to how this is exactly done (and without
actually setting the stack to be active). actually setting the stack to be active).

View file

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

View file

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

View file

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