From ad3d26cdea16d5459bc8fb9e08e422e0096ccb3d Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Sun, 12 May 2019 21:18:07 -0700 Subject: [PATCH] Better naming of blank-labeled discs --- DICUI.Library/Utilities/Validators.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DICUI.Library/Utilities/Validators.cs b/DICUI.Library/Utilities/Validators.cs index 4804d9f1..4794fa6d 100644 --- a/DICUI.Library/Utilities/Validators.cs +++ b/DICUI.Library/Utilities/Validators.cs @@ -723,7 +723,7 @@ namespace DICUI.Utilities // Get the optical disc drives List discDrives = DriveInfo.GetDrives() .Where(d => d.DriveType == DriveType.CDRom) - .Select(d => Drive.Optical(d.Name[0], (d.IsReady ? d.VolumeLabel : Template.DiscNotDetected), d.IsReady)) + .Select(d => Drive.Optical(d.Name[0], (d.IsReady ? (string.IsNullOrWhiteSpace(d.VolumeLabel) ? "disc" : d.VolumeLabel) : Template.DiscNotDetected), d.IsReady)) .ToList(); // Add the two lists together and order