diff options
author | sr55 <[email protected]> | 2010-03-12 21:24:42 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-03-12 21:24:42 +0000 |
commit | 8cd6d5369932ac0889cb9910df92a79531f073cb (patch) | |
tree | 95a09b480e55b46abc489b5529251e237dccfe5d /win/C#/Functions | |
parent | ce0f63162da3c62291231f8be6033981a54997ef (diff) |
WinGui:
The Source button dropdown menu can now display multiple ready DVD drives. Previously only the first ready drive would be displayed.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3162 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Functions')
-rw-r--r-- | win/C#/Functions/Main.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/win/C#/Functions/Main.cs b/win/C#/Functions/Main.cs index c99ce657a..3285b5f3a 100644 --- a/win/C#/Functions/Main.cs +++ b/win/C#/Functions/Main.cs @@ -719,6 +719,7 @@ namespace Handbrake.Functions {
List<DriveInformation> drives = new List<DriveInformation>();
DriveInfo[] theCollectionOfDrives = DriveInfo.GetDrives();
+ int id = 0;
foreach (DriveInfo curDrive in theCollectionOfDrives)
{
if (curDrive.DriveType == DriveType.CDRom && curDrive.IsReady &&
@@ -726,9 +727,11 @@ namespace Handbrake.Functions {
drives.Add(new DriveInformation
{
+ Id = id,
VolumeLabel = curDrive.VolumeLabel,
RootDirectory = curDrive.RootDirectory + "VIDEO_TS"
});
+ id++;
}
}
return drives;
|