| 357 | } |
| 358 | |
| 359 | void LoadWalletsActivity::load() |
| 360 | { |
| 361 | showProgressDialog( |
| 362 | //: Title of progress window which is displayed when wallets are being loaded. |
| 363 | tr("Load Wallets"), |
| 364 | /*: Descriptive text of the load wallets progress window which indicates to |
| 365 | the user that wallets are currently being loaded.*/ |
| 366 | tr("Loading wallets…")); |
| 367 | |
| 368 | QTimer::singleShot(0, worker(), [this] { |
| 369 | for (auto& wallet : node().walletLoader().getWallets()) { |
| 370 | m_wallet_controller->getOrCreateWallet(std::move(wallet)); |
| 371 | } |
| 372 | |
| 373 | QTimer::singleShot(0, this, [this] { Q_EMIT finished(); }); |
| 374 | }); |
| 375 | } |