diff --git a/CHANGELIST.md b/CHANGELIST.md index 8d547695..08050db0 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -72,6 +72,7 @@ - Can't publish single file for UI - Handle missing extension gracefully - Fix incorrect option slider display +- Handle undetected discs on refresh ### 2.4 (2022-10-26) diff --git a/MPF.Core/Data/Drive.cs b/MPF.Core/Data/Drive.cs index c3d494fe..89ab01c7 100644 --- a/MPF.Core/Data/Drive.cs +++ b/MPF.Core/Data/Drive.cs @@ -145,6 +145,12 @@ namespace MPF.Core.Data this.TotalSize = driveInfo.TotalSize; this.VolumeLabel = driveInfo.VolumeLabel; } + else + { + this.DriveFormat = string.Empty; + this.TotalSize = default; + this.VolumeLabel = string.Empty; + } } #region Public Functionality