mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-25 11:22:23 +00:00
Fix save fallback dns when no dns is added
This commit is contained in:
parent
0980641746
commit
26086269e5
2 changed files with 2 additions and 6 deletions
|
@ -119,7 +119,7 @@ class DnsProvider with ChangeNotifier {
|
|||
|
||||
if (result.successful == true) {
|
||||
DnsInfo data = dnsInfo!;
|
||||
data.bootstrapDns = List<String>.from(value['fallback_dns']);
|
||||
data.fallbackDns = List<String>.from(value['fallback_dns']);
|
||||
setDnsInfoData(data);
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -34,11 +34,7 @@ class _FallbackDnsScreenState extends State<FallbackDnsScreen> {
|
|||
}
|
||||
|
||||
void checkValidValues() {
|
||||
if (
|
||||
fallbackControllers.isNotEmpty &&
|
||||
fallbackControllers.every((element) => element['controller'].text != '') &&
|
||||
fallbackControllers.every((element) => element['error'] == null)
|
||||
) {
|
||||
if (fallbackControllers.every((element) => element['error'] == null)) {
|
||||
setState(() => validValues = true);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue