From 375c2c896c6ce20cbd78665a7ec177e89e3e49e1 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Fri, 24 Dec 2021 21:32:45 -0800 Subject: [PATCH] Invert condition for volume label --- CHANGELIST.md | 1 + MPF.Library/InfoTool.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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