mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 02:35:53 +08:00
Rename model checker property to hasWarnings
CURA-5237
This commit is contained in:
parent
62521e93db
commit
4bb6962302
@ -92,9 +92,8 @@ class ModelChecker(QObject, Extension):
|
|||||||
Logger.log("d", "Model checker view created.")
|
Logger.log("d", "Model checker view created.")
|
||||||
|
|
||||||
@pyqtProperty(bool, notify = onChanged)
|
@pyqtProperty(bool, notify = onChanged)
|
||||||
def runChecks(self):
|
def hasWarnings(self):
|
||||||
danger_shrinkage = self.checkObjectsForShrinkage()
|
danger_shrinkage = self.checkObjectsForShrinkage()
|
||||||
|
|
||||||
return any((danger_shrinkage, )) #If any of the checks fail, show the warning button.
|
return any((danger_shrinkage, )) #If any of the checks fail, show the warning button.
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
|
@ -18,7 +18,7 @@ Button
|
|||||||
|
|
||||||
UM.I18nCatalog{id: catalog; name:"cura"}
|
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.")
|
tooltip: catalog.i18nc("@info:tooltip", "Some things could be problematic in this print. Click to see tips for adjustment.")
|
||||||
onClicked: manager.showWarnings()
|
onClicked: manager.showWarnings()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user