Browse Source

Merge branch 'dev' into duke

pull/173/head
Duke 4 years ago
parent
commit
577b2cac54
  1. 8
      src/mainwindow.cpp

8
src/mainwindow.cpp

@ -304,7 +304,6 @@ void MainWindow::setupSettingsModal() {
int theme_index = settings.comboBoxTheme->findText(Settings::getInstance()->get_theme_name(), Qt::MatchExactly); int theme_index = settings.comboBoxTheme->findText(Settings::getInstance()->get_theme_name(), Qt::MatchExactly);
settings.comboBoxTheme->setCurrentIndex(theme_index); settings.comboBoxTheme->setCurrentIndex(theme_index);
QObject::connect(settings.comboBoxTheme, SIGNAL(currentIndexChanged(QString)), this, SLOT(slot_change_theme(QString)));
QObject::connect(settings.comboBoxTheme, &QComboBox::currentTextChanged, [=] (QString theme_name) { QObject::connect(settings.comboBoxTheme, &QComboBox::currentTextChanged, [=] (QString theme_name) {
this->slot_change_theme(theme_name); this->slot_change_theme(theme_name);
QMessageBox::information(this, tr("Theme Change"), tr("This change can take a few seconds."), QMessageBox::Ok); QMessageBox::information(this, tr("Theme Change"), tr("This change can take a few seconds."), QMessageBox::Ok);
@ -314,7 +313,6 @@ void MainWindow::setupSettingsModal() {
QString ticker = QString::fromStdString( Settings::getInstance()->get_currency_name() ); QString ticker = QString::fromStdString( Settings::getInstance()->get_currency_name() );
int currency_index = settings.comboBoxCurrency->findText(ticker, Qt::MatchExactly); int currency_index = settings.comboBoxCurrency->findText(ticker, Qt::MatchExactly);
settings.comboBoxCurrency->setCurrentIndex(currency_index); settings.comboBoxCurrency->setCurrentIndex(currency_index);
QObject::connect(settings.comboBoxCurrency, SIGNAL(currentIndexChanged(QString)), this, SLOT(slot_change_currency(QString)));
QObject::connect(settings.comboBoxCurrency, &QComboBox::currentTextChanged, [=] (QString ticker) { QObject::connect(settings.comboBoxCurrency, &QComboBox::currentTextChanged, [=] (QString ticker) {
this->slot_change_currency(ticker.toStdString()); this->slot_change_currency(ticker.toStdString());
rpc->refresh(true); rpc->refresh(true);
@ -367,7 +365,7 @@ void MainWindow::setupSettingsModal() {
} }
settings.chkConso->setChecked(isUsingConsolidation); settings.chkConso->setChecked(isUsingConsolidation);
if (rpc->getEZcashD() == nullptr) { if (rpc->getEZcashD() == nullptr) {
settings.chkConso->setEnabled(false); settings.chkConso->setEnabled(false);
} }
//Use Deletetx //Use Deletetx
@ -378,7 +376,7 @@ void MainWindow::setupSettingsModal() {
} }
settings.chkDeletetx->setChecked(isUsingDeletetx); settings.chkDeletetx->setChecked(isUsingDeletetx);
if (rpc->getEZcashD() == nullptr) { if (rpc->getEZcashD() == nullptr) {
settings.chkDeletetx->setEnabled(false); settings.chkDeletetx->setEnabled(false);
} }
//Use Zindex //Use Zindex
@ -532,7 +530,7 @@ void MainWindow::setupSettingsModal() {
if (!rpc->getConnection()->config->deletetx.isEmpty()) { if (!rpc->getConnection()->config->deletetx.isEmpty()) {
if (settings.chkDeletetx->isChecked() == false) { if (settings.chkDeletetx->isChecked() == false) {
Settings::removeFromZcashConf(zcashConfLocation, "deletetx"); Settings::removeFromZcashConf(zcashConfLocation, "deletetx");
showRestartInfo = true; showRestartInfo = true;
} }
} }

Loading…
Cancel
Save