diff --git a/plugins/CuraEngineBackend/CuraEngineBackend.py b/plugins/CuraEngineBackend/CuraEngineBackend.py index c814a11dc1..50ade0b45c 100644 --- a/plugins/CuraEngineBackend/CuraEngineBackend.py +++ b/plugins/CuraEngineBackend/CuraEngineBackend.py @@ -388,7 +388,7 @@ class CuraEngineBackend(QObject, Backend): ## Convenient function: set need_slicing, emit state and clear layer data def needSlicing(self): - self._need_slicing = True # For now only for debugging purposes + self._need_slicing = True self.processingProgress.emit(0.0) self.backendStateChange.emit(BackendState.NotStarted) if not self._use_timer: diff --git a/resources/qml/SaveButton.qml b/resources/qml/SaveButton.qml index 02a84fdf28..d49a1412a0 100644 --- a/resources/qml/SaveButton.qml +++ b/resources/qml/SaveButton.qml @@ -28,8 +28,7 @@ Item { switch(base.backendState) { case 1: - return ""; - //return catalog.i18nc("@label:PrintjobStatus", "Preparing to slice..."); + return catalog.i18nc("@label:PrintjobStatus", "Ready to slice"); case 2: return catalog.i18nc("@label:PrintjobStatus", "Slicing..."); case 3: @@ -119,7 +118,7 @@ Item { id: prepareButton tooltip: UM.OutputDeviceManager.activeDeviceDescription; - //enabled: (base.backendState == 3 || base.backendState == 5) && base.activity == true + // 1 = not started, 2 = Processing enabled: (base.backendState == 1 || base.backendState == 2) && base.activity == true visible: { return !autoSlice && (base.backendState == 1 || base.backendState == 2) && base.activity == true; @@ -131,6 +130,7 @@ Item { anchors.right: parent.right anchors.rightMargin: UM.Theme.getSize("default_margin").width + // 1 = not started, 5 = disabled text: [1, 5].indexOf(UM.Backend.state) != -1 ? catalog.i18nc("@label:Printjob", "Prepare") : catalog.i18nc("@label:Printjob", "Cancel") onClicked: { @@ -198,6 +198,7 @@ Item { id: saveToButton tooltip: UM.OutputDeviceManager.activeDeviceDescription; + // 3 = done, 5 = disabled enabled: (base.backendState == 3 || base.backendState == 5) && base.activity == true visible: { return autoSlice || ((base.backendState == 3 || base.backendState == 5) && base.activity == true); @@ -277,6 +278,7 @@ Item { anchors.rightMargin: UM.Theme.getSize("default_margin").width width: UM.Theme.getSize("save_button_save_to_button").height height: UM.Theme.getSize("save_button_save_to_button").height + // 3 = Done, 5 = Disabled enabled: (base.backendState == 3 || base.backendState == 5) && base.activity == true visible: (devicesModel.deviceCount > 1) && (base.backendState == 3 || base.backendState == 5) && base.activity == true