mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 15:44:04 -06:00
Ensure that no weird data is set in the printSetupSelector on first start
CURA-5961
This commit is contained in:
parent
d1a5d548a9
commit
d85aee1c53
1 changed files with 4 additions and 4 deletions
|
@ -54,12 +54,12 @@ Cura.ExpandableComponent
|
||||||
IconWithText
|
IconWithText
|
||||||
{
|
{
|
||||||
source: UM.Theme.getIcon("category_layer_height")
|
source: UM.Theme.getIcon("category_layer_height")
|
||||||
text: Cura.MachineManager.activeQualityOrQualityChangesName + " " + layerHeight.properties.value + "mm"
|
text: Cura.MachineManager.activeStack ? Cura.MachineManager.activeQualityOrQualityChangesName + " " + layerHeight.properties.value + "mm" : ""
|
||||||
|
|
||||||
UM.SettingPropertyProvider
|
UM.SettingPropertyProvider
|
||||||
{
|
{
|
||||||
id: layerHeight
|
id: layerHeight
|
||||||
containerStackId: Cura.MachineManager.activeStackId
|
containerStack: Cura.MachineManager.activeStack
|
||||||
key: "layer_height"
|
key: "layer_height"
|
||||||
watchedProperties: ["value"]
|
watchedProperties: ["value"]
|
||||||
}
|
}
|
||||||
|
@ -68,12 +68,12 @@ Cura.ExpandableComponent
|
||||||
IconWithText
|
IconWithText
|
||||||
{
|
{
|
||||||
source: UM.Theme.getIcon("category_infill")
|
source: UM.Theme.getIcon("category_infill")
|
||||||
text: parseInt(infillDensity.properties.value) + "%"
|
text: Cura.MachineManager.activeStack ? parseInt(infillDensity.properties.value) + "%" : "0%"
|
||||||
|
|
||||||
UM.SettingPropertyProvider
|
UM.SettingPropertyProvider
|
||||||
{
|
{
|
||||||
id: infillDensity
|
id: infillDensity
|
||||||
containerStackId: Cura.MachineManager.activeStackId
|
containerStack: Cura.MachineManager.activeStack
|
||||||
key: "infill_sparse_density"
|
key: "infill_sparse_density"
|
||||||
watchedProperties: ["value"]
|
watchedProperties: ["value"]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue