Retain binding with isValidMaterial on hover

So that if a material becomes valid, it updates this property.

Contributes to issue CURA-6033.
This commit is contained in:
Ghostkeeper 2018-12-21 16:27:38 +01:00
parent c8994102da
commit e8ea742cf6
No known key found for this signature in database
GPG Key ID: 86BEF881AE2CF276

View File

@ -12,7 +12,7 @@ Button
id: configurationItem id: configurationItem
property var configuration: null property var configuration: null
hoverEnabled: true hoverEnabled: isValidMaterial
property bool isValidMaterial: property bool isValidMaterial:
{ {
@ -24,7 +24,6 @@ Button
if (name == "" || name == "Unknown") if (name == "" || name == "Unknown")
{ {
hoverEnabled = false
return false return false
} }
} }