mirror of
https://github.com/SabreTools/MPF.git
synced 2026-07-02 17:24:48 +00:00
Fix crash on drive scan
This commit is contained in:
@@ -188,7 +188,7 @@ namespace MPF.Windows
|
||||
/// </summary>
|
||||
private void DetermineSystemType()
|
||||
{
|
||||
if (!UIOptions.Options.SkipSystemDetection)
|
||||
if (!UIOptions.Options.SkipSystemDetection && DriveLetterComboBox.SelectedIndex > -1)
|
||||
{
|
||||
ViewModels.LoggerViewModel.VerboseLog("Trying to detect system for drive {0}.. ", Drives[DriveLetterComboBox.SelectedIndex].Letter);
|
||||
var currentSystem = Validators.GetKnownSystem(Drives[DriveLetterComboBox.SelectedIndex]) ?? Converters.ToKnownSystem(UIOptions.Options.DefaultSystem);
|
||||
|
||||
Reference in New Issue
Block a user