Rename model checker property to hasWarnings

CURA-5237
This commit is contained in:
Lipu Fei 2018-04-16 17:20:38 +02:00
parent 62521e93db
commit 4bb6962302
2 changed files with 2 additions and 3 deletions

View file

@ -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()