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