mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-08 17:30:36 +02:00
refactor: Rename getWallets to getOpenWallets in WalletController
This commit is contained in:
@ -639,7 +639,7 @@ void BitcoinGUI::setWalletController(WalletController* wallet_controller)
|
|||||||
connect(wallet_controller, &WalletController::walletAdded, this, &BitcoinGUI::addWallet);
|
connect(wallet_controller, &WalletController::walletAdded, this, &BitcoinGUI::addWallet);
|
||||||
connect(wallet_controller, &WalletController::walletRemoved, this, &BitcoinGUI::removeWallet);
|
connect(wallet_controller, &WalletController::walletRemoved, this, &BitcoinGUI::removeWallet);
|
||||||
|
|
||||||
for (WalletModel* wallet_model : m_wallet_controller->getWallets()) {
|
for (WalletModel* wallet_model : m_wallet_controller->getOpenWallets()) {
|
||||||
addWallet(wallet_model);
|
addWallet(wallet_model);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ WalletController::~WalletController()
|
|||||||
m_activity_thread.wait();
|
m_activity_thread.wait();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<WalletModel*> WalletController::getWallets() const
|
std::vector<WalletModel*> WalletController::getOpenWallets() const
|
||||||
{
|
{
|
||||||
QMutexLocker locker(&m_mutex);
|
QMutexLocker locker(&m_mutex);
|
||||||
return m_wallets;
|
return m_wallets;
|
||||||
|
@ -40,7 +40,8 @@ public:
|
|||||||
WalletController(interfaces::Node& node, const PlatformStyle* platform_style, OptionsModel* options_model, QObject* parent);
|
WalletController(interfaces::Node& node, const PlatformStyle* platform_style, OptionsModel* options_model, QObject* parent);
|
||||||
~WalletController();
|
~WalletController();
|
||||||
|
|
||||||
std::vector<WalletModel*> getWallets() const;
|
//! Returns wallet models currently open.
|
||||||
|
std::vector<WalletModel*> getOpenWallets() const;
|
||||||
|
|
||||||
//! Returns all wallet names in the wallet dir mapped to whether the wallet
|
//! Returns all wallet names in the wallet dir mapped to whether the wallet
|
||||||
//! is loaded.
|
//! is loaded.
|
||||||
|
Reference in New Issue
Block a user