summaryrefslogtreecommitdiffstats
path: root/win/C#/frmMain.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-08-26 16:47:33 +0000
committersr55 <[email protected]>2009-08-26 16:47:33 +0000
commite1bd59b0d835296f141ea8b20a41f4c34506e3e6 (patch)
tree243729e7afa7a3382b1bb5b6ba4af60b9361e63d /win/C#/frmMain.cs
parent60fae20f233b2c8c4a0576fe46f5527e9c66552a (diff)
WinGui:
- Updated Growl to 2.0.0.20 - Added 2 new options. "Growl when queue completes" and "Growl when encode completes" - Added 1 new option. "Disable Resolution Calculation for "None" and "Custom" modes." - Changed Filters dropdown menus for consistency and to match the new layout - Fixed a problem with the Destination save dialog box double appending a file extension. Also added m4v to the filer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2778 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r--win/C#/frmMain.cs16
1 files changed, 8 insertions, 8 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs
index fb63ed229..f50c544d0 100644
--- a/win/C#/frmMain.cs
+++ b/win/C#/frmMain.cs
@@ -186,7 +186,7 @@ namespace Handbrake
private void events()
{
// Handle Widget changes when preset is selected.
- registerPresetEventHandler();
+ RegisterPresetEventHandler();
// Handle Window Resize
if (Properties.Settings.Default.MainWindowMinimize)
@@ -203,7 +203,7 @@ namespace Handbrake
}
// Change the preset label to custom when a user changes a setting. Don't want to give the impression that users can change settings and still be using a preset
- public void registerPresetEventHandler()
+ private void RegisterPresetEventHandler()
{
// Output Settings
drop_format.SelectedIndexChanged += new EventHandler(changePresetLabel);
@@ -231,7 +231,7 @@ namespace Handbrake
// Advanced Tab
x264Panel.rtf_x264Query.TextChanged += new EventHandler(changePresetLabel);
}
- public void unRegisterPresetEventHandler()
+ private void UnRegisterPresetEventHandler()
{
// Output Settings
drop_format.SelectedIndexChanged -= new EventHandler(changePresetLabel);
@@ -883,7 +883,7 @@ namespace Handbrake
}
private void drp_dvdtitle_SelectedIndexChanged(object sender, EventArgs e)
{
- unRegisterPresetEventHandler();
+ UnRegisterPresetEventHandler();
PictureSettings.lbl_Aspect.Text = "Select a Title"; // Reset some values on the form
drop_chapterStart.Items.Clear();
@@ -963,7 +963,7 @@ namespace Handbrake
data_chpt.Columns[0].Width = 166;
data_chpt.Columns[0].Width = 165;
- registerPresetEventHandler();
+ RegisterPresetEventHandler();
}
private void chapersChanged(object sender, EventArgs e)
{
@@ -1062,13 +1062,13 @@ namespace Handbrake
case 1:
if (!Path.GetExtension(DVD_Save.FileName).Equals(".mp4", StringComparison.InvariantCultureIgnoreCase))
if (Properties.Settings.Default.useM4v)
- DVD_Save.FileName += ".m4v";
+ DVD_Save.FileName = DVD_Save.FileName.Replace(".mp4", ".m4v").Replace(".mkv",".m4v");
else
- DVD_Save.FileName += ".mp4";
+ DVD_Save.FileName = DVD_Save.FileName.Replace(".m4v", ".mp4").Replace(".mkv", ".mp4");
break;
case 2:
if (!Path.GetExtension(DVD_Save.FileName).Equals(".mkv", StringComparison.InvariantCultureIgnoreCase))
- DVD_Save.FileName += ".mkv";
+ DVD_Save.FileName = DVD_Save.FileName .Replace(".mp4", ".mkv").Replace(".m4v",".mkv");
break;
default:
//do nothing