diff options
author | sr55 <[email protected]> | 2011-04-03 17:49:44 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2011-04-03 17:49:44 +0000 |
commit | a6fbb52b6c9f4b639101e6e4d37e670ca2840c84 (patch) | |
tree | 5bf6b9a4d945365ba07dd07ba77fd05019d0e086 /win/CS/Program.cs | |
parent | 80ebbf6f36a9084dd19e04e1cbfbd9ec93bfb6b6 (diff) |
WinGui:
- Move all user settings for the Services library into the services library.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3899 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/Program.cs')
-rw-r--r-- | win/CS/Program.cs | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/win/CS/Program.cs b/win/CS/Program.cs index ec23be6ca..acdaf0266 100644 --- a/win/CS/Program.cs +++ b/win/CS/Program.cs @@ -7,11 +7,9 @@ namespace Handbrake {
using System;
using System.Diagnostics;
- using System.Drawing;
using System.IO;
using System.Windows.Forms;
- using HandBrake.ApplicationServices;
using HandBrake.ApplicationServices.Services;
using Handbrake.Properties;
@@ -62,13 +60,9 @@ namespace Handbrake if (Settings.Default.UpdateRequired)
{
Settings.Default.Upgrade();
- // Reset some settings
Settings.Default.UpdateRequired = false;
- Settings.Default.CliExeHash = null;
- Settings.Default.hb_build = 0;
- Settings.Default.hb_platform = null;
- Settings.Default.hb_version = null;
-
+ Settings.Default.Save();
+
// Re-detect the CLI version data.
Functions.Main.SetCliVersionData();
}
@@ -103,8 +97,6 @@ namespace Handbrake x.UpdateBuiltInPresets(string.Empty);
}
- InitializeApplicationServices();
-
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new frmMain(args));
@@ -112,18 +104,6 @@ namespace Handbrake }
/// <summary>
- /// Initialize App Services
- /// </summary>
- private static void InitializeApplicationServices()
- {
- string versionId = String.Format("Windows GUI {1} {0}", Settings.Default.hb_build, Settings.Default.hb_version);
- Init.SetupSettings(versionId, Settings.Default.hb_version, Settings.Default.hb_build, InstanceId, Settings.Default.CompletionOption, Settings.Default.noDvdNav,
- Settings.Default.growlEncode, Settings.Default.growlQueue,
- Settings.Default.processPriority, Settings.Default.saveLogPath, Settings.Default.saveLogToSpecifiedPath,
- Settings.Default.saveLogWithVideo, Settings.Default.showCliForInGuiEncodeStatus, Settings.Default.preventSleep);
- }
-
- /// <summary>
/// Throw up an error message for any unhandled exceptions.
/// </summary>
/// <param name="sender">The sender</param>
|