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 color: buttonTheme.background
opacity: opacity:
loading ? theme.loadingElementsOpacity : button.loading ? theme.loadingElementsOpacity :
enabled ? 1 : enabled ? 1 :
theme.disabledElementsOpacity theme.disabledElementsOpacity

View File

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