Trezor support

This commit is contained in:
tobtoht
2021-07-01 23:00:47 +02:00
parent 531cc5f980
commit 062022f9d1
19 changed files with 156 additions and 23 deletions
+8 -1
View File
@@ -98,7 +98,14 @@ QString PageWalletFile::defaultWalletName() {
do {
QString walletStr = QString("wallet_%1");
if (m_fields->mode == WizardMode::CreateWalletFromDevice) {
walletStr = QString("ledger_%1");
switch (m_fields->deviceType) {
case DeviceType::LEDGER_NANO_S:
case DeviceType::LEDGER_NANO_X:
walletStr = QString("ledger_%1");
break;
case DeviceType::TREZOR_MODEL_T:
walletStr = QString("trezor_%1");
}
}
walletName = walletStr.arg(count);
count++;