| 374 | } |
| 375 | |
| 376 | void LoadWalletsActivity::load(bool show_loading_minimized) |
| 377 | { |
| 378 | showProgressDialog( |
| 379 | //: Title of progress window which is displayed when wallets are being loaded. |
| 380 | tr("Load Wallets"), |
| 381 | /*: Descriptive text of the load wallets progress window which indicates to |
| 382 | the user that wallets are currently being loaded.*/ |
| 383 | tr("Loading wallets…"), |
| 384 | /*show_minimized=*/show_loading_minimized); |
| 385 | |
| 386 | QTimer::singleShot(0, worker(), [this] { |
| 387 | for (auto& wallet : node().walletLoader().getWallets()) { |
| 388 | m_wallet_controller->getOrCreateWallet(std::move(wallet)); |
| 389 | } |
| 390 | |
| 391 | QTimer::singleShot(0, this, [this] { Q_EMIT finished(); }); |
| 392 | }); |
| 393 | } |
| 394 | |
| 395 | RestoreWalletActivity::RestoreWalletActivity(WalletController* wallet_controller, QWidget* parent_widget) |
| 396 | : WalletControllerActivity(wallet_controller, parent_widget) |