Fix showing tooltips for actionbuttons that have a tooltip text set

This commit is contained in:
fieldOfView 2020-02-28 22:31:34 +01:00
parent 0f662da2c3
commit ddbd843d91

View file

@ -133,7 +133,18 @@ Button
Cura.ToolTip Cura.ToolTip
{ {
id: tooltip id: tooltip
visible: button.hovered && buttonTextMetrics.elidedText != buttonText.text visible:
{
if (!button.hovered)
{
return false;
}
if (tooltipText == button.text)
{
return buttonTextMetrics.elidedText != buttonText.text;
}
return true;
}
} }
BusyIndicator BusyIndicator