summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/App.xaml.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2014-08-02 15:18:50 +0000
committersr55 <[email protected]>2014-08-02 15:18:50 +0000
commit6ea78897d46244337d7b857555b843451cc7aeea (patch)
tree24ef639cca12251bc4b7c004aa2b86185fcaa7c1 /win/CS/HandBrakeWPF/App.xaml.cs
parent872a601d453f16a41c8994f9f98453a5ecadad64 (diff)
WinGui: Fix a styling issue on the preview window. Disable libhb encode for the upcoming release so that users don't inadvertently turn it on. Made the new preview window an optional setting, off by default as it's a Alpha feature. (See Preferences)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6256 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/App.xaml.cs')
-rw-r--r--win/CS/HandBrakeWPF/App.xaml.cs9
1 files changed, 7 insertions, 2 deletions
diff --git a/win/CS/HandBrakeWPF/App.xaml.cs b/win/CS/HandBrakeWPF/App.xaml.cs
index b8ddfaff1..a744d859c 100644
--- a/win/CS/HandBrakeWPF/App.xaml.cs
+++ b/win/CS/HandBrakeWPF/App.xaml.cs
@@ -46,9 +46,9 @@ namespace HandBrakeWPF
protected override void OnStartup(StartupEventArgs e)
{
OperatingSystem OS = Environment.OSVersion;
- if ((OS.Platform == PlatformID.Win32NT) && (OS.Version.Major == 5 && OS.Version.Minor == 1))
+ if ((OS.Platform == PlatformID.Win32NT) && (OS.Version.Major == 5 && OS.Version.Minor <= 1))
{
- MessageBox.Show("Windows XP support is currently broken. It is not known if or when it will be fixed.", "Notice", MessageBoxButton.OK, MessageBoxImage.Warning);
+ MessageBox.Show("Windows XP and earlier are no longer supported. Version 0.9.9 was the last version to support these versions. ", "Notice", MessageBoxButton.OK, MessageBoxImage.Warning);
Application.Current.Shutdown();
return;
}
@@ -66,6 +66,11 @@ namespace HandBrakeWPF
return;
}
+ if (e.Args.Any(f => f.Equals("--enable-libhb")))
+ {
+ AppArguments.EnableLibHB = true;
+ }
+
base.OnStartup(e);
// If we have a file dropped on the icon, try scanning it.