Ledger Nano S Plus

This commit is contained in:
tobtoht 2022-05-23 10:56:11 +02:00
parent 4fcf746c3a
commit 070a074e6f
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C
4 changed files with 8 additions and 12 deletions

View file

@ -14,9 +14,8 @@ PageHardwareDevice::PageHardwareDevice(WizardFields *fields, QWidget *parent)
{
ui->setupUi(this);
ui->combo_deviceType->addItem("Ledger Nano S", DeviceType::LEDGER_NANO_S);
ui->combo_deviceType->addItem("Ledger Nano X", DeviceType::LEDGER_NANO_X);
ui->combo_deviceType->addItem("Trezor Model T", DeviceType::TREZOR_MODEL_T);
ui->combo_deviceType->addItem("Ledger Nano S (PLUS) / X", DeviceType::LEDGER);
ui->combo_deviceType->addItem("Trezor Model T", DeviceType::TREZOR);
}
void PageHardwareDevice::initializePage() {

View file

@ -99,11 +99,10 @@ QString PageWalletFile::defaultWalletName() {
QString walletStr = QString("wallet_%1");
if (m_fields->mode == WizardMode::CreateWalletFromDevice) {
switch (m_fields->deviceType) {
case DeviceType::LEDGER_NANO_S:
case DeviceType::LEDGER_NANO_X:
case DeviceType::LEDGER:
walletStr = QString("ledger_%1");
break;
case DeviceType::TREZOR_MODEL_T:
case DeviceType::TREZOR:
walletStr = QString("trezor_%1");
}
}

View file

@ -95,11 +95,10 @@ void WalletWizard::onCreateWallet() {
QString deviceName;
switch (m_wizardFields.deviceType) {
case DeviceType::LEDGER_NANO_S:
case DeviceType::LEDGER_NANO_X:
case DeviceType::LEDGER:
deviceName = "Ledger";
break;
case DeviceType::TREZOR_MODEL_T:
case DeviceType::TREZOR:
deviceName = "Trezor";
}

View file

@ -23,9 +23,8 @@ enum WizardMode {
};
enum DeviceType {
LEDGER_NANO_S = 0,
LEDGER_NANO_X,
TREZOR_MODEL_T
LEDGER = 0,
TREZOR
};
struct WizardFields {