summaryrefslogtreecommitdiffstats
path: root/win/CS/frmOptions.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-07-24 16:34:44 +0000
committersr55 <[email protected]>2011-07-24 16:34:44 +0000
commitc4562d3a2a18c932e67de3d79c44b8fab242f332 (patch)
tree8b8bf28b2e45a16e3e5e4714c2777098b54efaa8 /win/CS/frmOptions.cs
parent4f0cc8d541dc2972a096b5294383b4656b5d550d (diff)
WinGui: Add support for Minimum Duration setting for scans.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4135 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/frmOptions.cs')
-rw-r--r--win/CS/frmOptions.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/win/CS/frmOptions.cs b/win/CS/frmOptions.cs
index 2a3be77ba..ecf973086 100644
--- a/win/CS/frmOptions.cs
+++ b/win/CS/frmOptions.cs
@@ -245,6 +245,9 @@ namespace Handbrake
break;
}
+ // Min Title Length
+ ud_minTitleLength.Value = this.userSettingService.GetUserSettingInt(UserSettingConstants.MinScanDuration);
+
// Use Experimental dvdnav
if (userSettingService.GetUserSettingBoolean(UserSettingConstants.DisableLibDvdNav))
check_dvdnav.CheckState = CheckState.Checked;
@@ -699,6 +702,15 @@ namespace Handbrake
userSettingService.SetUserSetting(UserSettingConstants.DisableLibDvdNav, check_dvdnav.Checked);
}
+ private void ud_minTitleLength_ValueChanged(object sender, EventArgs e)
+ {
+ int value;
+ if (int.TryParse(ud_minTitleLength.Value.ToString(), out value))
+ {
+ this.userSettingService.SetUserSetting(UserSettingConstants.MinScanDuration, value);
+ }
+ }
+
#endregion
private void btn_close_Click(object sender, EventArgs e)