From 8e1c116b5dd6526a849c2a393a7ad1a12f136749 Mon Sep 17 00:00:00 2001 From: Ian Paschal Date: Fri, 27 Jul 2018 13:58:17 +0200 Subject: [PATCH] Revert "Show Preparing text after clicking Prepare button" This reverts commit 812816de112bf8b5b7c04a96244e153e53ca4a28. --- resources/qml/SaveButton.qml | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/resources/qml/SaveButton.qml b/resources/qml/SaveButton.qml index b06acdb8d5..0e0eec7277 100644 --- a/resources/qml/SaveButton.qml +++ b/resources/qml/SaveButton.qml @@ -168,8 +168,6 @@ Item { Button { id: prepareButton - property bool showPrepare : false; - tooltip: [1, 5].indexOf(base.backendState) != -1 ? catalog.i18nc("@info:tooltip","Slice current printjob") : catalog.i18nc("@info:tooltip","Cancel slicing process") // 1 = not started, 2 = Processing enabled: base.backendState != "undefined" && ([1, 2].indexOf(base.backendState) != -1) && base.activity @@ -182,19 +180,9 @@ Item { anchors.rightMargin: UM.Theme.getSize("sidebar_margin").width // 1 = not started, 4 = error, 5 = disabled - text: { - - if (base.backendState == 1 && showPrepare) - { - showPrepare = false - return catalog.i18nc("@label:Printjob", "Preparing") - } - - return [1, 4, 5].indexOf(base.backendState) != -1 ? catalog.i18nc("@label:Printjob", "Prepare") : catalog.i18nc("@label:Printjob", "Cancel") - } + text: [1, 4, 5].indexOf(base.backendState) != -1 ? catalog.i18nc("@label:Printjob", "Prepare") : catalog.i18nc("@label:Printjob", "Cancel") onClicked: { - showPrepare = true sliceOrStopSlicing(); }