mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-17 15:21:30 +02:00
Ledger Nano S Plus
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user