Handle undetected discs on refresh (fixes #461)

This commit is contained in:
Matt Nadareski
2023-03-03 08:40:33 -05:00
parent a7a17298f2
commit 672f30af35
2 changed files with 7 additions and 0 deletions

View File

@@ -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)

View File

@@ -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