Fixed last bugs in manual slicing. CURA-3214

This commit is contained in:
Jack Ha 2017-02-16 14:44:45 +01:00
parent e6e5d7862e
commit 18318348b6
2 changed files with 23 additions and 18 deletions

View file

@ -14,6 +14,7 @@ Item {
property real progress: UM.Backend.progress;
property int backendState: UM.Backend.state;
property var backend: CuraApplication.getBackend();
property bool activity: Printer.getPlatformActivity;
property int totalHeight: childrenRect.height + UM.Theme.getSize("default_margin").height
property string fileBaseName
@ -133,7 +134,6 @@ Item {
text: [1, 5].indexOf(UM.Backend.state) != -1 ? catalog.i18nc("@label:Printjob", "Prepare") : catalog.i18nc("@label:Printjob", "Cancel")
onClicked:
{
var backend = CuraApplication.getBackend()
if ([1, 5].indexOf(UM.Backend.state) != -1) {
backend.forceSlice();
} else {