diff --git a/CHANGELIST.md b/CHANGELIST.md index d0b9d83d..54167846 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -27,6 +27,7 @@ - Finalize wire-through and clean up - Minor cleanup on interactive modes - Add more useful credentials inputs for Check +- More gracefully handle "missing" media types ### 3.4.2 (2025-09-30) diff --git a/MPF.Frontend/DumpEnvironment.cs b/MPF.Frontend/DumpEnvironment.cs index 023594f5..69fb483a 100644 --- a/MPF.Frontend/DumpEnvironment.cs +++ b/MPF.Frontend/DumpEnvironment.cs @@ -356,6 +356,9 @@ namespace MPF.Frontend // If we're on an unsupported type, update the status accordingly return mediaType switch { + // Null means it will be handled by the program + null => ResultEventArgs.Success("Ready to dump"), + // Fully supported types MediaType.BluRay or MediaType.CDROM @@ -377,7 +380,7 @@ namespace MPF.Frontend MediaType.UMD => ResultEventArgs.Failure($"{mediaType.LongName()} supported for submission info parsing"), // Specifically unknown type - MediaType.NONE => ResultEventArgs.Failure($"Please select a valid media type"), + MediaType.NONE => ResultEventArgs.Failure("Please select a valid media type"), // Undumpable but recognized types _ => ResultEventArgs.Failure($"{mediaType.LongName()} media are not supported for dumping"),