@@ -184,12 +184,13 @@ WalletControllerActivity::WalletControllerActivity(WalletController* wallet_cont
184
184
connect (this , &WalletControllerActivity::finished, this , &QObject::deleteLater);
185
185
}
186
186
187
- void WalletControllerActivity::showProgressDialog (const QString& label_text)
187
+ void WalletControllerActivity::showProgressDialog (const QString& title_text, const QString& label_text)
188
188
{
189
189
auto progress_dialog = new QProgressDialog (m_parent_widget);
190
190
progress_dialog->setAttribute (Qt::WA_DeleteOnClose);
191
191
connect (this , &WalletControllerActivity::finished, progress_dialog, &QWidget::close);
192
192
193
+ progress_dialog->setWindowTitle (title_text);
193
194
progress_dialog->setLabelText (label_text);
194
195
progress_dialog->setRange (0 , 0 );
195
196
progress_dialog->setCancelButton (nullptr );
@@ -231,7 +232,12 @@ void CreateWalletActivity::askPassphrase()
231
232
232
233
void CreateWalletActivity::createWallet ()
233
234
{
234
- showProgressDialog (tr (" Creating Wallet <b>%1</b>…" ).arg (m_create_wallet_dialog->walletName ().toHtmlEscaped ()));
235
+ showProgressDialog (
236
+ // : Title of window indicating the progress of creation of a new wallet.
237
+ tr (" Create Wallet" ),
238
+ /* : Descriptive text of the create wallet progress window which indicates
239
+ to the user which wallet is currently being created. */
240
+ tr (" Creating Wallet <b>%1</b>…" ).arg (m_create_wallet_dialog->walletName ().toHtmlEscaped ()));
235
241
236
242
std::string name = m_create_wallet_dialog->walletName ().toStdString ();
237
243
uint64_t flags = 0 ;
@@ -322,7 +328,12 @@ void OpenWalletActivity::open(const std::string& path)
322
328
{
323
329
QString name = path.empty () ? QString (" [" +tr (" default wallet" )+" ]" ) : QString::fromStdString (path);
324
330
325
- showProgressDialog (tr (" Opening Wallet <b>%1</b>…" ).arg (name.toHtmlEscaped ()));
331
+ showProgressDialog (
332
+ // : Title of window indicating the progress of opening of a wallet.
333
+ tr (" Open Wallet" ),
334
+ /* : Descriptive text of the open wallet progress window which indicates
335
+ to the user which wallet is currently being opened. */
336
+ tr (" Opening Wallet <b>%1</b>…" ).arg (name.toHtmlEscaped ()));
326
337
327
338
QTimer::singleShot (0 , worker (), [this , path] {
328
339
std::unique_ptr<interfaces::Wallet> wallet = node ().walletClient ().loadWallet (path, m_error_message, m_warning_message);
@@ -340,7 +351,12 @@ LoadWalletsActivity::LoadWalletsActivity(WalletController* wallet_controller, QW
340
351
341
352
void LoadWalletsActivity::load ()
342
353
{
343
- showProgressDialog (tr (" Loading wallets…" ));
354
+ showProgressDialog (
355
+ // : Title of progress window which is displayed when wallets are being loaded.
356
+ tr (" Load Wallets" ),
357
+ /* : Descriptive text of the load wallets progress window which indicates to
358
+ the user that wallets are currently being loaded.*/
359
+ tr (" Loading wallets…" ));
344
360
345
361
QTimer::singleShot (0 , worker (), [this ] {
346
362
for (auto & wallet : node ().walletClient ().getWallets ()) {
0 commit comments