summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-03-27 16:08:37 +0000
committersr55 <[email protected]>2010-03-27 16:08:37 +0000
commitbb6aa5f4ef894f31ac917eb8250086f606d9db5d (patch)
tree283ed4fb792c64c354eeecbb847f89a5f1cbddc6 /win/C#/frmMain.cs
parentb081b54e1f2dd7b0c30fdf8a41724f57725cb1e9 (diff)
WinGui:
- Audio Panel will now remove all audio tracks from the audio list if the source has no tracks. When changing back to a source / title that has audio tracks, it will re-add audio tracks that are setup in the selected preset. If no preset is selected it will not re add any tracks. - Fix duplicate preset created when importing macgui preset. - Fix CQ/Filesize/AvgBitrate settings not being set correctly with macgui preset import. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3174 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs14
1 files changed, 5 insertions, 9 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index 2e9541a02..1fb52db5c 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -429,7 +429,7 @@ namespace Handbrake
private void mnu_importMacPreset_Click(object sender, EventArgs e)
{
- importPreset();
+ ImportPreset();
}
private void btn_new_preset_Click(object sender, EventArgs e)
@@ -518,7 +518,7 @@ namespace Handbrake
private void pmnu_import_Click(object sender, EventArgs e)
{
- importPreset();
+ ImportPreset();
}
private void pmnu_saveChanges_Click(object sender, EventArgs e)
@@ -698,7 +698,7 @@ namespace Handbrake
}
}
- private void importPreset()
+ private void ImportPreset()
{
if (openPreset.ShowDialog() == DialogResult.OK)
{
@@ -720,10 +720,6 @@ namespace Handbrake
else
{
PresetLoader.LoadPreset(this, parsed, parsed.PresetName, parsed.UsesPictureSettings);
- presetHandler.Add(parsed.PresetName,
- QueryGenerator.GenerateCliQuery(this, drop_mode.SelectedIndex, 0, null),
- parsed.UsesPictureSettings);
-
if (presetHandler.Add(parsed.PresetName + " (Imported)",
QueryGenerator.GenerateCliQuery(this, drop_mode.SelectedIndex, 0, null),
parsed.UsesPictureSettings))
@@ -1073,7 +1069,7 @@ namespace Handbrake
drop_chapterFinish.Items.Clear();
// If the dropdown is set to automatic nothing else needs to be done.
- // Otheriwse if its not, title data has to be loased from parsing.
+ // Otheriwse if its not, title data has to be loaded from parsing.
if (drp_dvdtitle.Text != "Automatic")
{
selectedTitle = drp_dvdtitle.SelectedItem as Title;
@@ -1110,7 +1106,7 @@ namespace Handbrake
drop_chapterFinish.Text = drop_chapterFinish.Items[drop_chapterFinish.Items.Count - 1].ToString();
// Populate the Audio Channels Dropdown
- AudioSettings.SetTrackList(selectedTitle);
+ AudioSettings.SetTrackList(selectedTitle, CurrentlySelectedPreset);
// Populate the Subtitles dropdown
Subtitles.SetSubtitleTrackAuto(selectedTitle.Subtitles.ToArray());