Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLipu Fei <lipu.fei815@gmail.com>2018-04-16 18:20:38 +0300
committerLipu Fei <lipu.fei815@gmail.com>2018-04-16 18:20:40 +0300
commit4bb69623026e058add33101fa1cc4ae789e43d6b (patch)
tree1bf73a118e95393a942adfcc97a377ed205322e0 /plugins/ModelChecker
parent62521e93db9d91d9071ac60bdb2a60e0c2e5c070 (diff)
Rename model checker property to hasWarnings
CURA-5237
Diffstat (limited to 'plugins/ModelChecker')
-rw-r--r--plugins/ModelChecker/ModelChecker.py3
-rw-r--r--plugins/ModelChecker/ModelChecker.qml2
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/ModelChecker/ModelChecker.py b/plugins/ModelChecker/ModelChecker.py
index 65d7c2e35d..f1e2b5d3e9 100644
--- a/plugins/ModelChecker/ModelChecker.py
+++ b/plugins/ModelChecker/ModelChecker.py
@@ -92,9 +92,8 @@ class ModelChecker(QObject, Extension):
Logger.log("d", "Model checker view created.")
@pyqtProperty(bool, notify = onChanged)
- def runChecks(self):
+ def hasWarnings(self):
danger_shrinkage = self.checkObjectsForShrinkage()
-
return any((danger_shrinkage, )) #If any of the checks fail, show the warning button.
@pyqtSlot()
diff --git a/plugins/ModelChecker/ModelChecker.qml b/plugins/ModelChecker/ModelChecker.qml
index 3db54d4387..98db233bf8 100644
--- a/plugins/ModelChecker/ModelChecker.qml
+++ b/plugins/ModelChecker/ModelChecker.qml
@@ -18,7 +18,7 @@ Button
UM.I18nCatalog{id: catalog; name:"cura"}
- visible: manager.runChecks
+ visible: manager.hasWarnings
tooltip: catalog.i18nc("@info:tooltip", "Some things could be problematic in this print. Click to see tips for adjustment.")
onClicked: manager.showWarnings()