Unverified Commit 382ee4ba authored by Michael Thomsen's avatar Michael Thomsen Committed by GitHub

Detail number of available devices in doctor summary (#14781)

parent b6d8615a
......@@ -542,7 +542,12 @@ class DeviceValidator extends DoctorValidator {
messages = await Device.descriptions(devices)
.map((String msg) => new ValidationMessage(msg)).toList();
}
return new ValidationResult(devices.isEmpty ? ValidationType.partial : ValidationType.installed, messages);
if (devices.isEmpty) {
return new ValidationResult(ValidationType.partial, messages);
} else {
return new ValidationResult(ValidationType.installed, messages, statusInfo: '${devices.length} available');
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment