Fix errors related to button.loading

This commit is contained in:
miruka 2020-07-10 03:47:37 -04:00
parent 2cf7b91829
commit e91a1f93e0
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ Rectangle {
color: buttonTheme.background
opacity:
loading ? theme.loadingElementsOpacity :
button.loading ? theme.loadingElementsOpacity :
enabled ? 1 :
theme.disabledElementsOpacity

View File

@ -7,7 +7,7 @@ import QtQuick.Layouts 1.12
HRowLayout {
id: buttonContent
spacing: button.spacing
opacity: loading ? theme.loadingElementsOpacity :
opacity: button.loading ? theme.loadingElementsOpacity :
enabled ? 1 : theme.disabledElementsOpacity