Activate Offline mode when switching
continuous-integration/drone/pr Build is pending
Details
continuous-integration/drone/pr Build is pending
Details
This commit is contained in:
parent
88a4a93326
commit
e59b81f013
|
@ -238,6 +238,8 @@ class _AddEditProfileViewState extends State<AddEditProfileView> {
|
|||
if (value) {
|
||||
if (Provider.of<ProfileInfoState>(context, listen: false).appearOffline == false) {
|
||||
Provider.of<FlwtchState>(context, listen: false).cwtch.ConfigureConnections(Provider.of<ProfileInfoState>(context, listen: false).onion, true, true, true);
|
||||
} else {
|
||||
Provider.of<FlwtchState>(context, listen: false).cwtch.ConfigureConnections(Provider.of<ProfileInfoState>(context, listen: false).onion, false, false, false);
|
||||
}
|
||||
} else {
|
||||
Provider.of<ProfileInfoState>(context, listen: false).deactivatePeerEngine(context);
|
||||
|
|
Loading…
Reference in New Issue