Slice button will now be disabled on error

CURA-5959
This commit is contained in:
Jaime van Kessel 2018-11-26 09:34:27 +01:00
parent b82ea58bc8
commit 09af7a9435

View file

@ -42,7 +42,7 @@ Column
Cura.IconLabel
{
id: message
id: unableToSliceMessage
width: parent.width
visible: widget.backendState == UM.Backend.Error
@ -98,7 +98,7 @@ Column
fixedWidthMode: true
anchors.fill: parent
text: catalog.i18nc("@button", "Slice")
enabled: !autoSlice && widget.backendState != UM.Backend.Error
enabled: widget.backendState != UM.Backend.Error
visible: widget.backendState == UM.Backend.NotStarted || widget.backendState == UM.Backend.Error
onClicked: sliceOrStopSlicing()
}