mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-27 04:07:14 +00:00
Fixed issue with filters management
This commit is contained in:
parent
6a5e161fcb
commit
f6b890539e
2 changed files with 6 additions and 6 deletions
|
@ -191,7 +191,7 @@ class ServersProvider with ChangeNotifier {
|
||||||
if (result['result'] == 'success') {
|
if (result['result'] == 'success') {
|
||||||
_serverStatus.data!.generalEnabled = newStatus;
|
_serverStatus.data!.generalEnabled = newStatus;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
return true;
|
return null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
|
@ -209,7 +209,7 @@ class ServersProvider with ChangeNotifier {
|
||||||
if (result['result'] == 'success') {
|
if (result['result'] == 'success') {
|
||||||
_serverStatus.data!.filteringEnabled = newStatus;
|
_serverStatus.data!.filteringEnabled = newStatus;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
return true;
|
return null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@ class ServersProvider with ChangeNotifier {
|
||||||
if (result['result'] == 'success') {
|
if (result['result'] == 'success') {
|
||||||
_serverStatus.data!.safeSearchEnabled = newStatus;
|
_serverStatus.data!.safeSearchEnabled = newStatus;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
return true;
|
return null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
|
@ -246,7 +246,7 @@ class ServersProvider with ChangeNotifier {
|
||||||
if (result['result'] == 'success') {
|
if (result['result'] == 'success') {
|
||||||
_serverStatus.data!.safeBrowsingEnabled = newStatus;
|
_serverStatus.data!.safeBrowsingEnabled = newStatus;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
return true;
|
return null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
|
@ -264,7 +264,7 @@ class ServersProvider with ChangeNotifier {
|
||||||
if (result['result'] == 'success') {
|
if (result['result'] == 'success') {
|
||||||
_serverStatus.data!.parentalControlEnabled = newStatus;
|
_serverStatus.data!.parentalControlEnabled = newStatus;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
return true;
|
return null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue