mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-20 22:09:11 +00:00
Bug fixes
This commit is contained in:
parent
c150d2ba23
commit
ed0bc65285
3 changed files with 5 additions and 3 deletions
|
@ -130,7 +130,9 @@ class Client {
|
||||||
ignoreStatistics: json["ignore_statistics"],
|
ignoreStatistics: json["ignore_statistics"],
|
||||||
upstreamsCacheEnabled: json["upstreams_cache_enabled"],
|
upstreamsCacheEnabled: json["upstreams_cache_enabled"],
|
||||||
upstreamsCacheSize: json["upstreams_cache_size"],
|
upstreamsCacheSize: json["upstreams_cache_size"],
|
||||||
blockedServicesSchedule: BlockedServicesSchedule.fromJson(json["blocked_services_schedule"])
|
blockedServicesSchedule: json["blocked_services_schedule"] != null
|
||||||
|
? BlockedServicesSchedule.fromJson(json["blocked_services_schedule"])
|
||||||
|
: null
|
||||||
);
|
);
|
||||||
|
|
||||||
Map<String, dynamic> toJson() => {
|
Map<String, dynamic> toJson() => {
|
||||||
|
|
|
@ -66,6 +66,6 @@ class ServerStatus {
|
||||||
safeSearchPixabay: json['safeSearch']['pixabay'],
|
safeSearchPixabay: json['safeSearch']['pixabay'],
|
||||||
safeSearchYandex: json['safeSearch']['yandex'],
|
safeSearchYandex: json['safeSearch']['yandex'],
|
||||||
safeSearchYoutube: json['safeSearch']['youtube'],
|
safeSearchYoutube: json['safeSearch']['youtube'],
|
||||||
dhcpAvailable: json['status']['dhcp_available']
|
dhcpAvailable: json['status']['dhcp_available'] ?? false
|
||||||
);
|
);
|
||||||
}
|
}
|
|
@ -92,7 +92,7 @@ class LogsConfigOptions extends StatelessWidget {
|
||||||
child: Text(dropdownItemTranslation[item.key]),
|
child: Text(dropdownItemTranslation[item.key]),
|
||||||
)).toList(),
|
)).toList(),
|
||||||
value: retentionTime,
|
value: retentionTime,
|
||||||
onChanged: (value) => updateRetentionTime(value as double),
|
onChanged: (value) => updateRetentionTime(double.tryParse(value.toString())),
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: const OutlineInputBorder(
|
border: const OutlineInputBorder(
|
||||||
borderRadius: BorderRadius.all(
|
borderRadius: BorderRadius.all(
|
||||||
|
|
Loading…
Add table
Reference in a new issue