summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--app/containers/PreferencesPage.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/containers/PreferencesPage.js b/app/containers/PreferencesPage.js
index 757bd693a7..b6bc60350d 100644
--- a/app/containers/PreferencesPage.js
+++ b/app/containers/PreferencesPage.js
@@ -9,11 +9,14 @@ import type { ReduxState, ReduxDispatch } from '../redux/store';
import type { SharedRouteProps } from '../routes';
const mapStateToProps = (state: ReduxState) => state;
-const mapDispatchToProps = (dispatch: ReduxDispatch, _props: SharedRouteProps) => {
+const mapDispatchToProps = (dispatch: ReduxDispatch, props: SharedRouteProps) => {
+ const { backend } = props;
const { push: pushHistory } = bindActionCreators({ push }, dispatch);
return {
onClose: () => pushHistory('/settings'),
- onChangeLanSharing: (_changed) => {},
+ onChangeLanSharing: (allowLan) => {
+ backend.setAllowLan(allowLan);
+ },
};
};