Changeset View
Changeset View
Standalone View
Standalone View
src/qt/rpcconsole.cpp
Show First 20 Lines • Show All 828 Lines • ▼ Show 20 Lines | if (ui->WalletSelector->count() == 2 && !isVisible()) { | ||||
// presently visible (and potentially in use) | // presently visible (and potentially in use) | ||||
ui->WalletSelector->setCurrentIndex(1); | ui->WalletSelector->setCurrentIndex(1); | ||||
} | } | ||||
if (ui->WalletSelector->count() > 2) { | if (ui->WalletSelector->count() > 2) { | ||||
ui->WalletSelector->setVisible(true); | ui->WalletSelector->setVisible(true); | ||||
ui->WalletSelectorLabel->setVisible(true); | ui->WalletSelectorLabel->setVisible(true); | ||||
} | } | ||||
} | } | ||||
void RPCConsole::removeWallet(WalletModel *const walletModel) { | |||||
const QString name = walletModel->getWalletName(); | |||||
ui->WalletSelector->removeItem(ui->WalletSelector->findData(name)); | |||||
if (ui->WalletSelector->count() == 2) { | |||||
ui->WalletSelector->setVisible(false); | |||||
ui->WalletSelectorLabel->setVisible(false); | |||||
} | |||||
} | |||||
#endif | #endif | ||||
static QString categoryClass(int category) { | static QString categoryClass(int category) { | ||||
switch (category) { | switch (category) { | ||||
case RPCConsole::CMD_REQUEST: | case RPCConsole::CMD_REQUEST: | ||||
return "cmd-request"; | return "cmd-request"; | ||||
break; | break; | ||||
case RPCConsole::CMD_REPLY: | case RPCConsole::CMD_REPLY: | ||||
▲ Show 20 Lines • Show All 599 Lines • Show Last 20 Lines |