summaryrefslogtreecommitdiffstats
path: root/win/CS/frmActivityWindow.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-03-19 15:46:21 +0000
committersr55 <[email protected]>2011-03-19 15:46:21 +0000
commit64503043ab114ffa207431c5c6a2293f1936278d (patch)
tree5fc4b346b4fa2a3db174d5ebd9284a56a2e1ad2b /win/CS/frmActivityWindow.cs
parent6e531a9eadeeed119e9dbec4e642bde5ff7c42e9 (diff)
WinGui:
- Improvements to the log window code. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3850 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/frmActivityWindow.cs')
-rw-r--r--win/CS/frmActivityWindow.cs28
1 files changed, 21 insertions, 7 deletions
diff --git a/win/CS/frmActivityWindow.cs b/win/CS/frmActivityWindow.cs
index b5e81ba37..c3dc5c966 100644
--- a/win/CS/frmActivityWindow.cs
+++ b/win/CS/frmActivityWindow.cs
@@ -129,6 +129,8 @@ namespace Handbrake
? "Activity Window (Scan Log)"
: "Activity Window (Encode Log)";
+ this.logSelector.SelectedIndex = mode == ActivityLogMode.Scan ? 0 : 1;
+
if (mode == ActivityLogMode.Scan)
{
scan.ScanCompleted += stopWindowRefresh;
@@ -410,16 +412,26 @@ namespace Handbrake
/// </param>
private void MnuOpenLogFolderClick(object sender, EventArgs e)
{
+ btn_openLogDirectory_Click(sender, e);
+ }
+
+ /// <summary>
+ /// Open the Log Directory
+ /// </summary>
+ /// <param name="sender">The Sender</param>
+ /// <param name="e">The Evennt Args</param>
+ private void btn_openLogDirectory_Click(object sender, EventArgs e)
+ {
string logDir = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\HandBrake\\logs";
string windir = Environment.GetEnvironmentVariable("WINDIR");
Process prc = new Process
- {
- StartInfo =
- {
- FileName = windir + @"\explorer.exe",
- Arguments = logDir
- }
- };
+ {
+ StartInfo =
+ {
+ FileName = windir + @"\explorer.exe",
+ Arguments = logDir
+ }
+ };
prc.Start();
}
@@ -468,5 +480,7 @@ namespace Handbrake
this.Dispose();
base.OnClosing(e);
}
+
+
}
} \ No newline at end of file