mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-03 17:39:49 +00:00
fix usage of QComboBox::currentIndexChanged
This commit is contained in:
parent
5bceb67de0
commit
48d0394a66
2 changed files with 3 additions and 3 deletions
|
@ -221,7 +221,7 @@ void Settings::setupStorageTab() {
|
||||||
|
|
||||||
// [Log level]
|
// [Log level]
|
||||||
ui->comboBox_logLevel->setCurrentIndex(config()->get(Config::logLevel).toInt());
|
ui->comboBox_logLevel->setCurrentIndex(config()->get(Config::logLevel).toInt());
|
||||||
connect(ui->comboBox_logLevel, &QComboBox::currentIndexChanged, [](int index){
|
connect(ui->comboBox_logLevel, QOverload<int>::of(&QComboBox::currentIndexChanged), [](int index){
|
||||||
config()->set(Config::logLevel, index);
|
config()->set(Config::logLevel, index);
|
||||||
if (!config()->get(Config::disableLogging).toBool()) {
|
if (!config()->get(Config::disableLogging).toBool()) {
|
||||||
WalletManager::instance()->setLogLevel(index);
|
WalletManager::instance()->setLogLevel(index);
|
||||||
|
|
|
@ -19,7 +19,7 @@ NetworkProxyWidget::NetworkProxyWidget(QWidget *parent)
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
ui->comboBox_proxy->setCurrentIndex(config()->get(Config::proxy).toInt());
|
ui->comboBox_proxy->setCurrentIndex(config()->get(Config::proxy).toInt());
|
||||||
connect(ui->comboBox_proxy, &QComboBox::currentIndexChanged, [this](int index){
|
connect(ui->comboBox_proxy, QOverload<int>::of(&QComboBox::currentIndexChanged), [this](int index){
|
||||||
this->onProxySettingsChanged();
|
this->onProxySettingsChanged();
|
||||||
ui->frame_proxy->setVisible(index != Config::Proxy::None);
|
ui->frame_proxy->setVisible(index != Config::Proxy::None);
|
||||||
ui->groupBox_proxySettings->setTitle(QString("%1 settings").arg(ui->comboBox_proxy->currentText()));
|
ui->groupBox_proxySettings->setTitle(QString("%1 settings").arg(ui->comboBox_proxy->currentText()));
|
||||||
|
@ -64,7 +64,7 @@ NetworkProxyWidget::NetworkProxyWidget(QWidget *parent)
|
||||||
|
|
||||||
// [Node traffic]
|
// [Node traffic]
|
||||||
ui->comboBox_torNodeTraffic->setCurrentIndex(config()->get(Config::torPrivacyLevel).toInt());
|
ui->comboBox_torNodeTraffic->setCurrentIndex(config()->get(Config::torPrivacyLevel).toInt());
|
||||||
connect(ui->comboBox_torNodeTraffic, &QComboBox::currentIndexChanged, this, &NetworkProxyWidget::onProxySettingsChanged);
|
connect(ui->comboBox_torNodeTraffic, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &NetworkProxyWidget::onProxySettingsChanged);
|
||||||
|
|
||||||
// [Show Tor logs]
|
// [Show Tor logs]
|
||||||
ui->frame_torShowLogs->setVisible(!config()->get(Config::useLocalTor).toBool());
|
ui->frame_torShowLogs->setVisible(!config()->get(Config::useLocalTor).toBool());
|
||||||
|
|
Loading…
Reference in a new issue