From 1d3a178d671af6d09b3e3be35562fe5070ace809 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 19 Sep 2010 12:17:07 +0000 Subject: WinGui: - Moved some non-specific HandBrake code (Exception Window, Update Information Window, Update Download Window) out into a separate framework library. Hoping to make this more reusable at a later point. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3543 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Controls/Subtitles.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'win/C#/Controls') diff --git a/win/C#/Controls/Subtitles.cs b/win/C#/Controls/Subtitles.cs index 0583aa802..dec3ec11a 100644 --- a/win/C#/Controls/Subtitles.cs +++ b/win/C#/Controls/Subtitles.cs @@ -690,6 +690,14 @@ namespace Handbrake.Controls drp_subtitleTracks.SelectedIndex = 0; Clear(); + this.AutomaticSubtitleSelection(); + } + + /// + /// Automatic Subtitle Selection based on user preferences. + /// + public void AutomaticSubtitleSelection() + { // Handle Native Language and "Dub Foreign language audio" and "Use Foreign language audio and Subtitles" Options if (Properties.Settings.Default.NativeLanguage != "Any") { @@ -714,7 +722,7 @@ namespace Handbrake.Controls BtnAddSubTrackClick(this, new EventArgs()); } } - } + } } } } -- cgit v1.2.3