Fix collapse buttons always disabled
This commit is contained in:
parent
60c64ad96f
commit
301384dc57
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user