Skip to content

Commit

Permalink
always remember proxy settings
Browse files Browse the repository at this point in the history
  • Loading branch information
benapetr committed Mar 27, 2020
1 parent 0933c5e commit d83b9c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/huggle_ui/proxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ Proxy::Proxy(QWidget *parent) : HW("proxy", this, parent), ui(new Ui::Proxy)
this->ui->comboBox->addItem("Ftp");
this->ui->l_Restart->setText(_l("proxy-restart"));
this->ui->comboBox->setCurrentIndex(hcfg->SystemConfig_ProxyType);
// Right now it seems proxy needs restart so this option doesn't really make much sense on any other value than true
this->ui->checkBox->setChecked(true);
if (hcfg->SystemConfig_UseProxy)
{
this->ui->checkBox->setChecked(true);
this->ui->lineEdit->setText(hcfg->SystemConfig_ProxyHost);
this->ui->lineEdit_2->setText(QString::number(hcfg->SystemConfig_ProxyPort));
this->ui->lineEdit_3->setText(hcfg->SystemConfig_ProxyUser);
Expand Down

0 comments on commit d83b9c0

Please sign in to comment.