From 5d2ff0e89824d8a861481eafc89b42c62dfcd14c Mon Sep 17 00:00:00 2001 From: ShauryaaSharma Date: Tue, 16 Jun 2026 02:50:17 +0530 Subject: [PATCH] gui: show wallet name in progress messages Include the wallet display name in initMessage calls for "Loading wallet...", "Creating wallet...", and "Rescanning..." so the splash screen clearly identifies which wallet is being processed at startup. For unnamed (default) wallets, DisplayName() returns the translated "default wallet" string. Add a comment to LoadWalletsActivity::load() noting that no wallet name is shown there because multiple wallets may be loading simultaneously. Fixes #259 --- src/qt/walletcontroller.cpp | 2 ++ src/wallet/wallet.cpp | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/qt/walletcontroller.cpp b/src/qt/walletcontroller.cpp index 1d6153d49a1..68251f8e20b 100644 --- a/src/qt/walletcontroller.cpp +++ b/src/qt/walletcontroller.cpp @@ -375,6 +375,8 @@ LoadWalletsActivity::LoadWalletsActivity(WalletController* wallet_controller, QW void LoadWalletsActivity::load(bool show_loading_minimized) { + // No specific wallet name is shown here because multiple wallets may be + // loaded simultaneously when syncing the GUI with the node's wallet list. showProgressDialog( //: Title of progress window which is displayed when wallets are being loaded. tr("Load Wallets"), diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index bb79dd471e9..e4f3ec8c7ce 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -283,7 +283,7 @@ std::shared_ptr LoadWalletInternal(WalletContext& context, const std::s return nullptr; } - context.chain->initMessage(_("Loading wallet…")); + context.chain->initMessage(strprintf("[%s] %s", name.empty() ? std::string{_("default wallet")} : name, _("Loading wallet…"))); std::shared_ptr wallet = CWallet::LoadExisting(context, name, std::move(database), error, warnings); if (!wallet) { error = Untranslated("Wallet loading failed.") + Untranslated(" ") + error; @@ -416,7 +416,7 @@ std::shared_ptr CreateWallet(WalletContext& context, const std::string& } // Make the wallet - context.chain->initMessage(_("Creating wallet…")); + context.chain->initMessage(strprintf("[%s] %s", name, _("Creating wallet…"))); std::shared_ptr wallet = CWallet::CreateNew(context, name, std::move(database), wallet_creation_flags, born_encrypted, error, warnings); if (!wallet) { error = Untranslated("Wallet creation failed.") + Untranslated(" ") + error; @@ -3288,7 +3288,7 @@ bool CWallet::AttachChain(const std::shared_ptr& walletInstance, interf } } - chain.initMessage(_("Rescanning…")); + chain.initMessage(strprintf("[%s] %s", walletInstance->DisplayName(), _("Rescanning…"))); walletInstance->WalletLogPrintf("Rescanning last %i blocks (from block %i)...\n", *tip_height - rescan_height, rescan_height); {