@@ -191,7 +191,7 @@ WalletControllerActivity::WalletControllerActivity(WalletController* wallet_cont
191191 connect (this , &WalletControllerActivity::finished, this , &QObject::deleteLater);
192192}
193193
194- void WalletControllerActivity::showProgressDialog (const QString& title_text, const QString& label_text)
194+ void WalletControllerActivity::showProgressDialog (const QString& title_text, const QString& label_text, bool show_minimized )
195195{
196196 auto progress_dialog = new QProgressDialog (m_parent_widget);
197197 progress_dialog->setAttribute (Qt::WA_DeleteOnClose);
@@ -206,6 +206,8 @@ void WalletControllerActivity::showProgressDialog(const QString& title_text, con
206206 // The setValue call forces QProgressDialog to start the internal duration estimation.
207207 // See details in https://bugreports.qt.io/browse/QTBUG-47042.
208208 progress_dialog->setValue (0 );
209+ // When requested, launch dialog minimized
210+ if (show_minimized) progress_dialog->showMinimized ();
209211}
210212
211213CreateWalletActivity::CreateWalletActivity (WalletController* wallet_controller, QWidget* parent_widget)
@@ -368,14 +370,15 @@ LoadWalletsActivity::LoadWalletsActivity(WalletController* wallet_controller, QW
368370{
369371}
370372
371- void LoadWalletsActivity::load ()
373+ void LoadWalletsActivity::load (bool show_loading_minimized )
372374{
373375 showProgressDialog (
374376 // : Title of progress window which is displayed when wallets are being loaded.
375377 tr (" Load Wallets" ),
376378 /* : Descriptive text of the load wallets progress window which indicates to
377379 the user that wallets are currently being loaded.*/
378- tr (" Loading wallets…" ));
380+ tr (" Loading wallets…" ),
381+ /* show_minimized=*/ show_loading_minimized);
379382
380383 QTimer::singleShot (0 , worker (), [this ] {
381384 for (auto & wallet : node ().walletLoader ().getWallets ()) {
0 commit comments