mirror of
https://github.com/feather-wallet/feather.git
synced 2025-03-12 09:37:47 +00:00
Ledger Nano S Plus
This commit is contained in:
parent
4fcf746c3a
commit
070a074e6f
4 changed files with 8 additions and 12 deletions
|
@ -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() {
|
||||
|
|
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
|
@ -23,9 +23,8 @@ enum WizardMode {
|
|||
};
|
||||
|
||||
enum DeviceType {
|
||||
LEDGER_NANO_S = 0,
|
||||
LEDGER_NANO_X,
|
||||
TREZOR_MODEL_T
|
||||
LEDGER = 0,
|
||||
TREZOR
|
||||
};
|
||||
|
||||
struct WizardFields {
|
||||
|
|
Loading…
Reference in a new issue