wizard: fix mode selection back button

This commit is contained in:
selsta
2019-12-20 06:29:10 +01:00
parent 500c7ec82e
commit 3c6a1e45d7
3 changed files with 6 additions and 15 deletions

View File

@@ -141,10 +141,11 @@ Rectangle {
btnPrevText: qsTr("Back to menu") + translationManager.emptyString
btnNext.visible: false
progressSteps: 0
autoTransition: false
onPrevClicked: {
wizardController.wizardStackView.backTransition = wizardController.wizardStatePrevious.viewName == 'wizardLanguage';
wizardController.wizardState = wizardController.wizardStatePrevious.viewName == 'wizardLanguage' ? 'wizardLanguage' : 'wizardHome';
wizardController.wizardStackView.backTransition = !wizardController.wizardStackView.backTransition;
wizardController.wizardState = wizardController.wizardStackView.backTransition ? 'wizardLanguage' : 'wizardHome';
}
}
}