diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/app.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app/app.js b/app/app.js index 187c0a7fef..76d92a1b55 100644 --- a/app/app.js +++ b/app/app.js @@ -343,12 +343,24 @@ export default class AppRenderer { actions.settings.updateAllowLan(allowLan); } + async setAutoConnect(autoConnect: boolean) { + const actions = this._reduxActions; + await this._daemonRpc.setAutoConnect(autoConnect); + actions.settings.updateAutoConnect(autoConnect); + } + async _fetchAllowLan() { const actions = this._reduxActions; const allowLan = await this._daemonRpc.getAllowLan(); actions.settings.updateAllowLan(allowLan); } + async _fetchAutoConnect() { + const actions = this._reduxActions; + const autoConnect = await this._daemonRpc.getAutoConnect(); + actions.settings.updateAutoConnect(autoConnect); + } + async _fetchSecurityState() { const securityState = await this._daemonRpc.getState(); const connectionState = this._securityStateToConnectionState(securityState); @@ -485,6 +497,7 @@ export default class AppRenderer { this.fetchRelaySettings(), this._fetchRelayLocations(), this._fetchAllowLan(), + this._fetchAutoConnect(), this._fetchLocation(), this._fetchAccountHistory(), ]); |
