Don't display layer height before a printer is added

Contributes to issue CURA-4357, somewhat.
This commit is contained in:
Ghostkeeper 2017-09-22 12:52:22 +02:00
parent 0183616b8f
commit bf6c6891c4
No known key found for this signature in database
GPG Key ID: C5F96EE2BC0F7E75

View File

@ -166,7 +166,7 @@ Item
anchors.top: parent.top
anchors.topMargin: UM.Theme.getSize("sidebar_margin").height / 2
color: UM.Theme.getColor("text")
text: Cura.ProfilesModel.getItem(index).layer_height_without_unit
text: Cura.MachineManager.activeMachine != null ? Cura.ProfilesModel.getItem(index).layer_height_without_unit : ""
width: 1
x: