Skip to content

Commit 382ee4b

Browse files
authored
Detail number of available devices in doctor summary (flutter#14781)
1 parent b6d8615 commit 382ee4b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/flutter_tools/lib/src/doctor.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,12 @@ class DeviceValidator extends DoctorValidator {
542542
messages = await Device.descriptions(devices)
543543
.map((String msg) => new ValidationMessage(msg)).toList();
544544
}
545-
return new ValidationResult(devices.isEmpty ? ValidationType.partial : ValidationType.installed, messages);
545+
546+
if (devices.isEmpty) {
547+
return new ValidationResult(ValidationType.partial, messages);
548+
} else {
549+
return new ValidationResult(ValidationType.installed, messages, statusInfo: '${devices.length} available');
550+
}
546551
}
547552
}
548553

0 commit comments

Comments
 (0)