Skip to content
Permalink
Browse files

wizard: Language button on home and add back button

  • Loading branch information
selsta committed Nov 27, 2019
1 parent d5f4d5d commit 7b0cd19487ff479c4d9c3a1b12cd39baf008ca2c
Showing with 3 additions and 5 deletions.
  1. +0 −2 wizard/WizardHome.qml
  2. +3 −3 wizard/WizardModeSelection.qml
@@ -149,12 +149,10 @@ Rectangle {
}

MoneroComponents.StandardButton {
visible: !persistentSettings.customDecorations
small: true
text: qsTr("Change language") + translationManager.emptyString

onClicked: {
wizardController.wizardStackView.backTransition = false;
appWindow.toggleLanguageView();
}
}
@@ -138,13 +138,13 @@ Rectangle {

WizardNav {
Layout.topMargin: 5
btnPrevText: qsTr("Change language") + translationManager.emptyString
btnPrevText: qsTr("Back to menu") + translationManager.emptyString
btnNext.visible: false
progressSteps: 0

onPrevClicked: {
wizardController.wizardStackView.backTransition = true;
wizardController.wizardState = 'wizardLanguage';
wizardController.wizardStackView.backTransition = wizardController.wizardStatePrevious.viewName == 'wizardLanguage';
wizardController.wizardState = wizardController.wizardStatePrevious.viewName == 'wizardLanguage' ? 'wizardLanguage' : 'wizardHome';
}
}
}

0 comments on commit 7b0cd19

Please sign in to comment.
You can’t perform that action at this time.