fix(StatusStackModal): init the next/finish buttons
call `updateRightButtons()` also on creation to correctly initialize the Next and Finish buttons in derived classes, when one overrrides these can be seen in the Backup Seed dialog where the Next button is not enabled even though all 3 boxes are checked
This commit is contained in:
parent
a35d3dca8c
commit
9a2e28f2a7
|
@ -16,7 +16,7 @@ StatusModal {
|
|||
property alias replaceItem: replaceLoader.sourceComponent
|
||||
property alias subHeaderItem: subHeaderLoader.sourceComponent
|
||||
|
||||
readonly property int itemsCount: stackLayout.children.length
|
||||
readonly property int itemsCount: stackLayout.count
|
||||
readonly property var currentItem: stackLayout.currentItem
|
||||
|
||||
property Item nextButton: StatusButton {
|
||||
|
@ -44,6 +44,7 @@ StatusModal {
|
|||
}
|
||||
}
|
||||
|
||||
Component.onCompleted: updateRightButtons()
|
||||
onCurrentIndexChanged: updateRightButtons()
|
||||
onReplaceItemChanged: updateRightButtons()
|
||||
|
||||
|
@ -106,4 +107,4 @@ StatusModal {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue