mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-22 18:54:33 +00:00
SeedDialog: Fix missing 25 word seed if lang not set
This commit is contained in:
parent
9a97c44d4c
commit
57593589df
1 changed files with 6 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "ui_seeddialog.h"
|
||||
#include "seeddialog.h"
|
||||
#include "constants.h"
|
||||
|
||||
SeedDialog::SeedDialog(QSharedPointer<AppContext> ctx, QWidget *parent)
|
||||
: QDialog(parent)
|
||||
|
@ -14,6 +15,11 @@ SeedDialog::SeedDialog(QSharedPointer<AppContext> ctx, QWidget *parent)
|
|||
|
||||
ui->label_restoreHeight->setText(QString::number(m_ctx->wallet->getWalletCreationHeight()));
|
||||
|
||||
if (m_ctx->wallet->getSeedLanguage().isEmpty()) {
|
||||
qDebug() << "No seed language set, using default";
|
||||
m_ctx->wallet->setSeedLanguage(constants::seedLanguage);
|
||||
}
|
||||
|
||||
QString seedOffset = m_ctx->wallet->getCacheAttribute("feather.seedoffset");
|
||||
QString seed_14_words = m_ctx->wallet->getCacheAttribute("feather.seed");
|
||||
QString seed_25_words = m_ctx->wallet->getSeed(seedOffset);
|
||||
|
|
Loading…
Reference in a new issue