Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(settings): connect enable LAN discovery checkbox
Browse files Browse the repository at this point in the history
Checkbox and setting introduced in 9f8b0fe but not connected.
  • Loading branch information
anthonybilinski committed Apr 13, 2018
1 parent 869036f commit 55d8922
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/widget/form/settings/advancedform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ void AdvancedForm::on_cbEnableUDP_stateChanged()
bodyUI->cbEnableLanDiscovery->setEnabled(enableUdp);
}

void AdvancedForm::on_cbEnableLanDiscovery_stateChanged()
{
Settings::getInstance().setEnableLanDiscovery(bodyUI->cbEnableLanDiscovery->isChecked());
}

void AdvancedForm::on_proxyAddr_editingFinished()
{
Settings::getInstance().setProxyAddr(bodyUI->proxyAddr->text());
Expand Down
1 change: 1 addition & 0 deletions src/widget/form/settings/advancedform.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ private slots:
// Connection
void on_cbEnableIPv6_stateChanged();
void on_cbEnableUDP_stateChanged();
void on_cbEnableLanDiscovery_stateChanged();
void on_proxyAddr_editingFinished();
void on_proxyPort_valueChanged(int port);
void on_proxyType_currentIndexChanged(int index);
Expand Down

0 comments on commit 55d8922

Please sign in to comment.