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())));
445
+
box.setText(tr("Are you sure you wish to migrate the wallet <i>%1</i>?").arg(GUIUtil::HtmlEscape(GUIUtil::WalletDisplayName(name))));
446
446
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"
447
447
"If this wallet contains any watchonly scripts, a new wallet will be created which contains those watchonly scripts.\n"
448
448
"If this wallet contains any solvable but not watched scripts, a different and new wallet will be created which contains those scripts.\n\n"
449
449
"The migration process will create a backup of the wallet before migrating. This backup file will be named "
450
450
"<wallet name>-<timestamp>.legacy.bak and can be found in the directory for this wallet. In the event of "
451
-
"an incorrect migration, the backup can be restored with the \"Restore Wallet\" functionality."));
auto res{node().walletLoader().migrateWallet(name, passphrase)};
471
471
472
472
if (res) {
473
-
m_success_message = tr("The wallet '%1' was migrated successfully.").arg(GUIUtil::HtmlEscape(res->wallet->getWalletName()));
473
+
m_success_message = tr("The wallet '%1' was migrated successfully.").arg(GUIUtil::HtmlEscape(GUIUtil::WalletDisplayName(res->wallet->getWalletName())));
474
474
if (res->watchonly_wallet_name) {
475
-
m_success_message += QChar('') + tr("Watchonly scripts have been migrated to a new wallet named '%1'.").arg(GUIUtil::HtmlEscape(res->watchonly_wallet_name.value()));
475
+
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())));
476
476
}
477
477
if (res->solvables_wallet_name) {
478
-
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()));
478
+
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