summaryrefslogtreecommitdiffstats
path: root/win/C#/frmOptions.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#/frmOptions.cs')
-rw-r--r--win/C#/frmOptions.cs11
1 files changed, 8 insertions, 3 deletions
diff --git a/win/C#/frmOptions.cs b/win/C#/frmOptions.cs
index de739781b..7529291e2 100644
--- a/win/C#/frmOptions.cs
+++ b/win/C#/frmOptions.cs
@@ -212,6 +212,7 @@ namespace Handbrake
{
Properties.Settings.Default.saveLogWithVideo = check_saveLogWithVideo.Checked;
}
+
private void check_logsInSpecifiedLocation_CheckedChanged(object sender, EventArgs e)
{
Properties.Settings.Default.saveLogToSpecifiedPath = check_logsInSpecifiedLocation.Checked;
@@ -242,9 +243,13 @@ namespace Handbrake
private void btn_clearLogs_Click(object sender, EventArgs e)
{
- Main.clearLogs();
- MessageBox.Show(this, "HandBrake's Log file directory has been cleared!", "Notice", MessageBoxButtons.OK,
- MessageBoxIcon.Information);
+ DialogResult result = MessageBox.Show("Are you sure you wish to clear the log file directory?", "Clear Logs", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question);
+ if (result == DialogResult.Yes)
+ {
+ Main.clearLogs();
+ MessageBox.Show(this, "HandBrake's Log file directory has been cleared!", "Notice", MessageBoxButtons.OK,
+ MessageBoxIcon.Information);
+ }
}
#endregion