mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-04 05:35:52 +00:00
Skip trying to set speeds if no drives
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
- Remove SkipMediaTypeDetection option, cleanup options window
|
||||
- Minor tweaks to frontend code
|
||||
- Default to CD speed range
|
||||
- Skip trying to set speeds if no drives
|
||||
|
||||
### 3.4.0 (2025-09-25)
|
||||
|
||||
|
||||
@@ -2103,6 +2103,10 @@ namespace MPF.Frontend.ViewModels
|
||||
/// </summary>
|
||||
public void SetSupportedDriveSpeed()
|
||||
{
|
||||
// Skip trying to set speeds if no drives
|
||||
if (Drives.Count == 0)
|
||||
return;
|
||||
|
||||
// Set the drive speed list that's appropriate
|
||||
DriveSpeeds = InterfaceConstants.GetSpeedsForMediaType(CurrentMediaType);
|
||||
VerboseLogLn($"Supported media speeds: {string.Join(", ", [.. DriveSpeeds.ConvertAll(ds => ds.ToString())])}");
|
||||
|
||||
Reference in New Issue
Block a user