Fix collapse buttons always disabled

This commit is contained in:
miruka 2019-11-22 04:50:40 -04:00
parent 60c64ad96f
commit 301384dc57

View File

@ -9,6 +9,7 @@ Button {
bottomPadding: topPadding bottomPadding: topPadding
leftPadding: spacing / (circle ? 1.5 : 1) leftPadding: spacing / (circle ? 1.5 : 1)
rightPadding: leftPadding rightPadding: leftPadding
enabled: ! button.loading
iconItem.svgName: loading ? "hourglass" : icon.name iconItem.svgName: loading ? "hourglass" : icon.name
icon.color: theme.icons.colorize icon.color: theme.icons.colorize
@ -42,7 +43,7 @@ Button {
Binding { Binding {
when: disableWhileLoading && loading when: disableWhileLoading && button.loading
target: button target: button
property: "enabled" property: "enabled"
value: false value: false