From f34a12947c422484c04a7f3bf12120996c7f293e Mon Sep 17 00:00:00 2001 From: sr55 Date: Fri, 26 Jun 2009 15:12:41 +0000 Subject: WinGui: - Removed the group boxes on the main window to save a bit of space. - Main Window source display is the source filename or folder only. The text box is no longer used. - Added two new options: "Clear Log History" and "View Log Directory" - Changed log file format to "DateTime DestFileName.txt" to "DestFileName DateTime.txt" git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2626 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/EncodeQueue/Encode.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'win/C#/EncodeQueue/Encode.cs') diff --git a/win/C#/EncodeQueue/Encode.cs b/win/C#/EncodeQueue/Encode.cs index 29d8bf874..248624064 100644 --- a/win/C#/EncodeQueue/Encode.cs +++ b/win/C#/EncodeQueue/Encode.cs @@ -162,9 +162,8 @@ namespace Handbrake.EncodeQueue string tempLogFile = Path.Combine(logDir, "last_encode_log.txt"); string encodeDestinationPath = Path.GetDirectoryName(destination); - String[] destName = destination.Split('\\'); - string destinationFile = destName[destName.Length - 1]; - string encodeLogFile = DateTime.Now.ToString().Replace("/", "-").Replace(":", "-") + " " + destinationFile + ".txt"; + String destinationFile = Path.GetFileName(destination); + string encodeLogFile = destinationFile + " " + DateTime.Now.ToString().Replace("/", "-").Replace(":", "-") + ".txt"; // Make sure the log directory exists. if (!Directory.Exists(logDir)) -- cgit v1.2.3