GODT-1910: Fix save button state not being updated after being clicked once.

This commit is contained in:
Xavier Michelon
2022-11-28 16:50:03 +01:00
parent d4b8f3e1c2
commit 9881011043
5 changed files with 4 additions and 14 deletions

View File

@ -38,16 +38,6 @@ T.Button {
property alias textVerticalAlignment: label.verticalAlignment
property alias textHorizontalAlignment: label.horizontalAlignment
// TODO: store previous enabled state and restore it?
// For now assuming that only enabled buttons could have loading state
onLoadingChanged: {
if (loading) {
enabled = false
} else {
enabled = true
}
}
id: control
implicitWidth: Math.max(