summaryrefslogtreecommitdiffstats
path: root/win/CS/Program.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2011-08-15 19:23:58 +0000
committersr55 <[email protected]>2011-08-15 19:23:58 +0000
commit746186658150dcbca2721d6d6fea77b4d7c09467 (patch)
treeebf2f050abe5418dbf4acf6cb1602815eb786d49 /win/CS/Program.cs
parent774af7004dd17c59fee9606273cd52a24867eb98 (diff)
WinGui: Add a service manager to maintain single instances of services & update the user settings service to import defaults from an xml file.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4177 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/Program.cs')
-rw-r--r--win/CS/Program.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/win/CS/Program.cs b/win/CS/Program.cs
index 406d8d0bb..847c70bd6 100644
--- a/win/CS/Program.cs
+++ b/win/CS/Program.cs
@@ -13,6 +13,7 @@ namespace Handbrake
using HandBrake.ApplicationServices;
using HandBrake.ApplicationServices.Exceptions;
using HandBrake.ApplicationServices.Services;
+ using HandBrake.ApplicationServices.Services.Interfaces;
using Handbrake.Properties;
using Handbrake.ToolWindows;
@@ -66,7 +67,7 @@ namespace Handbrake
// So I'm going to only allow this for users using svn builds.
// Going from major to major will require the user to reset.
// Going from svn to svn will attempt the upgrade.
- UserSettingService service = new UserSettingService();
+ IUserSettingService service = ServiceManager.UserSettingService;
string version = service.GetUserSetting<string>(UserSettingConstants.HandBrakeVersion);
if (version.Contains("svn"))
{