Skip to content

Commit

Permalink
Detail number of available devices in doctor summary (flutter#14781)
Browse files Browse the repository at this point in the history
  • Loading branch information
mit-mit authored Feb 22, 2018
1 parent b6d8615 commit 382ee4b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/flutter_tools/lib/src/doctor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
}

Expand Down

0 comments on commit 382ee4b

Please sign in to comment.