Only display plug-in checker when there's really a warning

As discussed with LukeChen-Ultimaker, we only want to display a button when there is really something up with the current set-up, not when there might be something up. Most users will be confused to see a button that always says that everything is fine.

This also simplifies the signal handling a lot.

Contributes to issue CURA-4557.
This commit is contained in:
Ruben D 2018-03-22 01:31:35 +01:00
parent 987b475e3b
commit 5bf93a8398
No known key found for this signature in database
GPG key ID: 6B42C9465E304A62
2 changed files with 38 additions and 39 deletions

View file

@ -18,9 +18,9 @@ Button
UM.I18nCatalog{id: catalog; name:"cura"}
visible: manager.needCheck
visible: manager.runChecks
tooltip: catalog.i18nc("@info:tooltip", "Check current setup for known problems.")
onClicked: manager.runChecks()
onClicked: manager.showWarnings()
width: UM.Theme.getSize("save_button_specs_icons").width
height: UM.Theme.getSize("save_button_specs_icons").height