1
mirror of https://github.com/monero-project/monero-gui synced 2024-12-21 03:45:53 +01:00

Merge pull request #2520

7b0cd19 wizard: Language button on home and add back button (selsta)
This commit is contained in:
luigi1111 2019-12-03 22:24:06 -06:00
commit 7cca39ad48
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
2 changed files with 3 additions and 5 deletions

View File

@ -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();
}
}

View File

@ -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';
}
}
}