diff --git a/CHANGELIST.md b/CHANGELIST.md index c7af33e4..24fa9775 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -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 diff --git a/MPF.Library/InfoTool.cs b/MPF.Library/InfoTool.cs index 330a39c2..7a114076 100644 --- a/MPF.Library/InfoTool.cs +++ b/MPF.Library/InfoTool.cs @@ -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