diff options
author | sr55 <[email protected]> | 2009-06-26 15:12:41 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-06-26 15:12:41 +0000 |
commit | f34a12947c422484c04a7f3bf12120996c7f293e (patch) | |
tree | d30ebff859a5cf3650f3ac97553c059778c73b52 /win/C#/EncodeQueue/Encode.cs | |
parent | 665406fbd1ff2f3e10f2a85e9d5691e9d4456e89 (diff) |
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
Diffstat (limited to 'win/C#/EncodeQueue/Encode.cs')
-rw-r--r-- | win/C#/EncodeQueue/Encode.cs | 5 |
1 files changed, 2 insertions, 3 deletions
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))
|