You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
box.setText(tr("Are you sure you wish to migrate the wallet <i>%1</i>?").arg(GUIUtil::HtmlEscape(wallet_model->getDisplayName())));
453
+
box.setText(tr("Are you sure you wish to migrate the wallet <i>%1</i>?").arg(GUIUtil::HtmlEscape(GUIUtil::WalletDisplayName(name))));
445
454
box.setInformativeText(tr("Migrating the wallet will convert this wallet to one or more descriptor wallets. A new wallet backup will need to be made.\n"
446
455
"If this wallet contains any watchonly scripts, a new wallet will be created which contains those watchonly scripts.\n"
447
456
"If this wallet contains any solvable but not watched scripts, a different and new wallet will be created which contains those scripts.\n\n"
448
457
"The migration process will create a backup of the wallet before migrating. This backup file will be named "
449
458
"<wallet name>-<timestamp>.legacy.bak and can be found in the directory for this wallet. In the event of "
450
-
"an incorrect migration, the backup can be restored with the \"Restore Wallet\" functionality."));
auto res{node().walletLoader().migrateWallet(name, passphrase)};
472
484
473
485
if (res) {
474
-
m_success_message = tr("The wallet '%1' was migrated successfully.").arg(GUIUtil::HtmlEscape(res->wallet->getWalletName()));
486
+
m_success_message = tr("The wallet '%1' was migrated successfully.").arg(GUIUtil::HtmlEscape(GUIUtil::WalletDisplayName(res->wallet->getWalletName())));
475
487
if (res->watchonly_wallet_name) {
476
-
m_success_message += QChar('') + tr("Watchonly scripts have been migrated to a new wallet named '%1'.").arg(GUIUtil::HtmlEscape(res->watchonly_wallet_name.value()));
488
+
m_success_message += QChar('') + tr("Watchonly scripts have been migrated to a new wallet named '%1'.").arg(GUIUtil::HtmlEscape(GUIUtil::WalletDisplayName(res->watchonly_wallet_name.value())));
477
489
}
478
490
if (res->solvables_wallet_name) {
479
-
m_success_message += QChar('') + tr("Solvable but not watched scripts have been migrated to a new wallet named '%1'.").arg(GUIUtil::HtmlEscape(res->solvables_wallet_name.value()));
491
+
m_success_message += QChar('') + tr("Solvable but not watched scripts have been migrated to a new wallet named '%1'.").arg(GUIUtil::HtmlEscape(GUIUtil::WalletDisplayName(res->solvables_wallet_name.value())));
0 commit comments