mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 06:28:59 +08:00
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:
parent
c8994102da
commit
e8ea742cf6
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user