| 64 | } |
| 65 | |
| 66 | std::map<std::string, bool> WalletController::listWalletDir() const |
| 67 | { |
| 68 | QMutexLocker locker(&m_mutex); |
| 69 | std::map<std::string, bool> wallets; |
| 70 | for (const std::string& name : m_node.walletLoader().listWalletDir()) { |
| 71 | wallets[name] = false; |
| 72 | } |
| 73 | for (WalletModel* wallet_model : m_wallets) { |
| 74 | auto it = wallets.find(wallet_model->wallet().getWalletName()); |
| 75 | if (it != wallets.end()) it->second = true; |
| 76 | } |
| 77 | return wallets; |
| 78 | } |
| 79 | |
| 80 | void WalletController::closeWallet(WalletModel* wallet_model, QWidget* parent) |
| 81 | { |
no test coverage detected