summaryrefslogtreecommitdiffstats
path: root/win/C#/Functions
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-03-12 21:24:42 +0000
committersr55 <[email protected]>2010-03-12 21:24:42 +0000
commit8cd6d5369932ac0889cb9910df92a79531f073cb (patch)
tree95a09b480e55b46abc489b5529251e237dccfe5d /win/C#/Functions
parentce0f63162da3c62291231f8be6033981a54997ef (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.cs3
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;