mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
Merge pull request #2331
e546ce8
WizardRestoreWallet1: use RadioButtons instead of buttons (selsta)
This commit is contained in:
commit
dc49d7af38
1 changed files with 28 additions and 17 deletions
|
@ -113,39 +113,50 @@ Rectangle {
|
||||||
id: wizardWalletInput
|
id: wizardWalletInput
|
||||||
}
|
}
|
||||||
|
|
||||||
GridLayout{
|
RowLayout {
|
||||||
columns: 3
|
Layout.topMargin: 10
|
||||||
|
spacing: 30
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
MoneroComponents.StandardButton {
|
MoneroComponents.RadioButton {
|
||||||
|
id: seedRadioButton
|
||||||
text: qsTr("Restore from seed") + translationManager.emptyString
|
text: qsTr("Restore from seed") + translationManager.emptyString
|
||||||
small: true
|
fontSize: 16
|
||||||
enabled: wizardController.walletRestoreMode !== 'seed'
|
checked: true
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
checked = true;
|
||||||
|
keysRadioButton.checked = false;
|
||||||
|
qrRadioButton.checked = false;
|
||||||
wizardController.walletRestoreMode = 'seed';
|
wizardController.walletRestoreMode = 'seed';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MoneroComponents.StandardButton {
|
MoneroComponents.RadioButton {
|
||||||
|
id: keysRadioButton
|
||||||
text: qsTr("Restore from keys") + translationManager.emptyString
|
text: qsTr("Restore from keys") + translationManager.emptyString
|
||||||
small: true
|
fontSize: 16
|
||||||
enabled: wizardController.walletRestoreMode !== 'keys'
|
checked: false
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
checked = true;
|
||||||
|
seedRadioButton.checked = false;
|
||||||
|
qrRadioButton.checked = false;
|
||||||
wizardController.walletRestoreMode = 'keys';
|
wizardController.walletRestoreMode = 'keys';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MoneroComponents.StandardButton {
|
MoneroComponents.RadioButton {
|
||||||
text: qsTr("From QR Code") + translationManager.emptyString
|
id: qrRadioButton
|
||||||
small: true
|
text: qsTr("Restore from QR Code") + translationManager.emptyString
|
||||||
|
fontSize: 16
|
||||||
visible: appWindow.qrScannerEnabled
|
visible: appWindow.qrScannerEnabled
|
||||||
enabled: wizardController.walletRestoreMode !== 'qr'
|
checked: false
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
checked = true;
|
||||||
|
seedRadioButton.checked = false;
|
||||||
|
keysRadioButton.checked = false;
|
||||||
wizardController.walletRestoreMode = 'qr';
|
wizardController.walletRestoreMode = 'qr';
|
||||||
cameraUi.state = "Capture"
|
cameraUi.state = "Capture";
|
||||||
cameraUi.qrcode_decoded.connect(Wizard.updateFromQrCode)
|
cameraUi.qrcode_decoded.connect(Wizard.updateFromQrCode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue