diff options
-rw-r--r-- | win/C#/Program.cs | 9 | ||||
-rw-r--r-- | win/C#/Properties/Settings.Designer.cs | 12 | ||||
-rw-r--r-- | win/C#/Properties/Settings.settings | 3 | ||||
-rw-r--r-- | win/C#/app.config | 3 |
4 files changed, 27 insertions, 0 deletions
diff --git a/win/C#/Program.cs b/win/C#/Program.cs index ea82e3e34..8600fe569 100644 --- a/win/C#/Program.cs +++ b/win/C#/Program.cs @@ -8,6 +8,9 @@ namespace Handbrake using System;
using System.IO;
using System.Windows.Forms;
+
+ using Handbrake.Properties;
+
using Presets;
/// <summary>
@@ -21,6 +24,12 @@ namespace Handbrake [STAThread]
public static void Main()
{
+ if (Settings.Default.UpdateRequired)
+ {
+ Settings.Default.Upgrade();
+ Settings.Default.UpdateRequired = false;
+ }
+
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
const string failedInstall = "HandBrake is not installed properly. Please reinstall HandBrake. \n\n";
diff --git a/win/C#/Properties/Settings.Designer.cs b/win/C#/Properties/Settings.Designer.cs index 018b95e3a..ef0389f9e 100644 --- a/win/C#/Properties/Settings.Designer.cs +++ b/win/C#/Properties/Settings.Designer.cs @@ -536,5 +536,17 @@ namespace Handbrake.Properties { this["hb_min_cli"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("True")]
+ public bool UpdateRequired {
+ get {
+ return ((bool)(this["UpdateRequired"]));
+ }
+ set {
+ this["UpdateRequired"] = value;
+ }
+ }
}
}
diff --git a/win/C#/Properties/Settings.settings b/win/C#/Properties/Settings.settings index cc7649fe7..fe32569a6 100644 --- a/win/C#/Properties/Settings.settings +++ b/win/C#/Properties/Settings.settings @@ -131,5 +131,8 @@ <Setting Name="hb_min_cli" Type="System.Int32" Scope="User">
<Value Profile="(Default)">3264</Value>
</Setting>
+ <Setting Name="UpdateRequired" Type="System.Boolean" Scope="User">
+ <Value Profile="(Default)">True</Value>
+ </Setting>
</Settings>
</SettingsFile>
\ No newline at end of file diff --git a/win/C#/app.config b/win/C#/app.config index 6a9c862c3..525247e52 100644 --- a/win/C#/app.config +++ b/win/C#/app.config @@ -137,6 +137,9 @@ <setting name="hb_min_cli" serializeAs="String">
<value>3264</value>
</setting>
+ <setting name="UpdateRequired" serializeAs="String">
+ <value>True</value>
+ </setting>
</Handbrake.Properties.Settings>
</userSettings>
<startup />
|