Invert condition for volume label

This commit is contained in:
Matt Nadareski
2021-12-24 21:32:45 -08:00
parent b151e79aed
commit 375c2c896c
2 changed files with 2 additions and 1 deletions

View File

@@ -41,6 +41,7 @@
- Add internal support for all Redump site codes
- Use the Volume Label special site code
- Capture newlines in Redump fields
- Invert condition for volume label
### 2.1 (2021-07-22)
- Enum, no more

View File

@@ -160,7 +160,7 @@ namespace MPF.Library
info.TracksAndWriteOffsets.ClrMameProData = null;
// Add the volume label to comments, if possible
if (!string.IsNullOrWhiteSpace(drive?.VolumeLabel) && info.CommonDiscInfo.Comments.Contains(Template.VolumeLabelCommentField))
if (!string.IsNullOrWhiteSpace(drive?.VolumeLabel) && !info.CommonDiscInfo.Comments.Contains(Template.VolumeLabelCommentField))
info.CommonDiscInfo.Comments += $"{Template.VolumeLabelCommentField} {drive.VolumeLabel}\n";
// Extract info based generically on MediaType