mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-05 10:29:30 +00:00
wizard: Language button on home and add back button
This commit is contained in:
parent
d5f4d5d93f
commit
7b0cd19487
2 changed files with 3 additions and 5 deletions
|
@ -149,12 +149,10 @@ Rectangle {
|
||||||
}
|
}
|
||||||
|
|
||||||
MoneroComponents.StandardButton {
|
MoneroComponents.StandardButton {
|
||||||
visible: !persistentSettings.customDecorations
|
|
||||||
small: true
|
small: true
|
||||||
text: qsTr("Change language") + translationManager.emptyString
|
text: qsTr("Change language") + translationManager.emptyString
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
wizardController.wizardStackView.backTransition = false;
|
|
||||||
appWindow.toggleLanguageView();
|
appWindow.toggleLanguageView();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,13 +138,13 @@ Rectangle {
|
||||||
|
|
||||||
WizardNav {
|
WizardNav {
|
||||||
Layout.topMargin: 5
|
Layout.topMargin: 5
|
||||||
btnPrevText: qsTr("Change language") + translationManager.emptyString
|
btnPrevText: qsTr("Back to menu") + translationManager.emptyString
|
||||||
btnNext.visible: false
|
btnNext.visible: false
|
||||||
progressSteps: 0
|
progressSteps: 0
|
||||||
|
|
||||||
onPrevClicked: {
|
onPrevClicked: {
|
||||||
wizardController.wizardStackView.backTransition = true;
|
wizardController.wizardStackView.backTransition = wizardController.wizardStatePrevious.viewName == 'wizardLanguage';
|
||||||
wizardController.wizardState = 'wizardLanguage';
|
wizardController.wizardState = wizardController.wizardStatePrevious.viewName == 'wizardLanguage' ? 'wizardLanguage' : 'wizardHome';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue