mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
Detail number of available devices in doctor summary (#14781)
This commit is contained in:
parent
b6d8615aed
commit
382ee4baa4
|
@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue