Skip to content

Commit

Permalink
Fix threading levels getting messed in Settings form load
Browse files Browse the repository at this point in the history
  • Loading branch information
FenPhoenix committed Nov 23, 2024
1 parent e6f6d20 commit e66a36e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions AngelLoader/Forms/Settings/SettingsForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -754,9 +754,14 @@ something with a group box that isn't there.
panel.Controls.Add(driveLabel);
panel.Controls.Add(comboBox);

DriveMultithreadingLevel driveMultithreadingLevel =
ConfigData.GetDriveThreadability(
_driveLettersAndTypes,
driveData.Root);

IOThreadingLevelDriveDataSections[i] = new DriveDataSection(
driveLabel,
driveData.MultithreadingLevel,
driveMultithreadingLevel,
driveData.Root,
driveData.ModelName,
comboBox
Expand All @@ -769,10 +774,6 @@ something with a group box that isn't there.
IOThreadingPage.HorizDivYPositions.Add(y + (driveTypePanelHeight - 20));
}

DriveMultithreadingLevel driveMultithreadingLevel =
ConfigData.GetDriveThreadability(
_driveLettersAndTypes,
IOThreadingLevelDriveDataSections[i].Drive);
comboBox.SelectedIndex = driveMultithreadingLevel switch
{
DriveMultithreadingLevel.None => 1,
Expand Down

0 comments on commit e66a36e

Please sign in to comment.