mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-04 13:55:23 -05:00
gui: Call setWalletActionsEnabled(true) only for the first wallet
This commit is contained in:
parent
a78742830a
commit
20c9e03554
1 changed files with 5 additions and 4 deletions
|
@ -664,14 +664,15 @@ void BitcoinGUI::addWallet(WalletModel* walletModel)
|
|||
{
|
||||
if (!walletFrame) return;
|
||||
if (!walletFrame->addWallet(walletModel)) return;
|
||||
const QString display_name = walletModel->getDisplayName();
|
||||
setWalletActionsEnabled(true);
|
||||
rpcConsole->addWallet(walletModel);
|
||||
m_wallet_selector->addItem(display_name, QVariant::fromValue(walletModel));
|
||||
if (m_wallet_selector->count() == 2) {
|
||||
if (m_wallet_selector->count() == 0) {
|
||||
setWalletActionsEnabled(true);
|
||||
} else if (m_wallet_selector->count() == 1) {
|
||||
m_wallet_selector_label_action->setVisible(true);
|
||||
m_wallet_selector_action->setVisible(true);
|
||||
}
|
||||
const QString display_name = walletModel->getDisplayName();
|
||||
m_wallet_selector->addItem(display_name, QVariant::fromValue(walletModel));
|
||||
}
|
||||
|
||||
void BitcoinGUI::removeWallet(WalletModel* walletModel)
|
||||
|
|
Loading…
Add table
Reference in a new issue