mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-21 14:29:12 +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"],
|
||||
upstreamsCacheEnabled: json["upstreams_cache_enabled"],
|
||||
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() => {
|
||||
|
|
|
@ -66,6 +66,6 @@ class ServerStatus {
|
|||
safeSearchPixabay: json['safeSearch']['pixabay'],
|
||||
safeSearchYandex: json['safeSearch']['yandex'],
|
||||
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]),
|
||||
)).toList(),
|
||||
value: retentionTime,
|
||||
onChanged: (value) => updateRetentionTime(value as double),
|
||||
onChanged: (value) => updateRetentionTime(double.tryParse(value.toString())),
|
||||
decoration: InputDecoration(
|
||||
border: const OutlineInputBorder(
|
||||
borderRadius: BorderRadius.all(
|
||||
|
|
Loading…
Add table
Reference in a new issue