using System.Diagnostics;\r
using System.IO;\r
using System.Linq;\r
- using System.Net;\r
using System.Text;\r
using System.Text.RegularExpressions;\r
- using System.Threading;\r
using System.Windows.Forms;\r
using System.Xml.Serialization;\r
\r
using HandBrake.ApplicationServices.Parsing;\r
using HandBrake.ApplicationServices.Services.Interfaces;\r
using Model;\r
- using HandBrake.ApplicationServices.Services;\r
\r
/// <summary>\r
/// Useful functions which various screens can use.\r
return this.dvdDriveLabel;\r
}\r
\r
+ if (selectedTitle != null && !string.IsNullOrEmpty(selectedTitle.SourceName))\r
+ {\r
+ return Path.GetFileName(selectedTitle.SourceName);\r
+ }\r
+\r
if (Path.GetFileNameWithoutExtension(this.sourcePath) != "VIDEO_TS")\r
return Path.GetFileNameWithoutExtension(this.sourcePath);\r
\r
// Update the source label if we have multiple streams\r
if (selectedTitle != null)\r
if (!string.IsNullOrEmpty(selectedTitle.SourceName))\r
- labelSource.Text = labelSource.Text = Path.GetFileName(selectedTitle.SourceName);\r
+ labelSource.Text = Path.GetFileName(selectedTitle.SourceName);\r
\r
// Run the AutoName & ChapterNaming functions\r
if (Properties.Settings.Default.autoNaming)\r
private void UpdateSourceLabel()\r
{\r
labelSource.Text = string.IsNullOrEmpty(sourcePath) ? "Select \"Source\" to continue." : this.SourceName;\r
-\r
- if (selectedTitle != null)\r
- if (!string.IsNullOrEmpty(selectedTitle.SourceName))\r
- // If it's one of multiple source files, make sure we don't use the folder name\r
- labelSource.Text = Path.GetFileName(selectedTitle.SourceName);\r
}\r
\r
/// <summary>\r
this.check_preventSleep.AutoSize = true;\r
this.check_preventSleep.Location = new System.Drawing.Point(73, 45);\r
this.check_preventSleep.Name = "check_preventSleep";\r
- this.check_preventSleep.Size = new System.Drawing.Size(266, 17);\r
+ this.check_preventSleep.Size = new System.Drawing.Size(260, 17);\r
this.check_preventSleep.TabIndex = 91;\r
this.check_preventSleep.Text = "Prevent the system from sleeping when encoding.";\r
this.ToolTip.SetToolTip(this.check_preventSleep, "Prevent system from sleeping during encoding.");\r
this.check_clearOldLogs.AutoSize = true;\r
this.check_clearOldLogs.Location = new System.Drawing.Point(73, 234);\r
this.check_clearOldLogs.Name = "check_clearOldLogs";\r
- this.check_clearOldLogs.Size = new System.Drawing.Size(166, 17);\r
+ this.check_clearOldLogs.Size = new System.Drawing.Size(162, 17);\r
this.check_clearOldLogs.TabIndex = 90;\r
this.check_clearOldLogs.Text = "Clear logs older than 30 days";\r
this.ToolTip.SetToolTip(this.check_clearOldLogs, "Clear logs which are older than 30 days.\r\nThis only applies to HandBrakes Applica" +\r
this.check_logsInSpecifiedLocation.AutoSize = true;\r
this.check_logsInSpecifiedLocation.Location = new System.Drawing.Point(73, 139);\r
this.check_logsInSpecifiedLocation.Name = "check_logsInSpecifiedLocation";\r
- this.check_logsInSpecifiedLocation.Size = new System.Drawing.Size(306, 17);\r
+ this.check_logsInSpecifiedLocation.Size = new System.Drawing.Size(305, 17);\r
this.check_logsInSpecifiedLocation.TabIndex = 87;\r
this.check_logsInSpecifiedLocation.Text = "Put a copy of individual encode logs in a specified location:";\r
this.ToolTip.SetToolTip(this.check_logsInSpecifiedLocation, "Place a copy of the encode log in the same folder as the encoded movie.");\r