From 3e41c7995374e71e9d61b0dce4ac59066a261599 Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 18 Jul 2018 22:28:13 +0100 Subject: WinGui: Move UserSettings over to JSON format. Settings from the older XML format will automatically transfer and the legacy files will be removed. --- win/CS/HandBrakeWPF/Factories/HBConfigurationFactory.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'win/CS/HandBrakeWPF/Factories') diff --git a/win/CS/HandBrakeWPF/Factories/HBConfigurationFactory.cs b/win/CS/HandBrakeWPF/Factories/HBConfigurationFactory.cs index c4d199ef8..f4e0b9ee7 100644 --- a/win/CS/HandBrakeWPF/Factories/HBConfigurationFactory.cs +++ b/win/CS/HandBrakeWPF/Factories/HBConfigurationFactory.cs @@ -38,15 +38,15 @@ namespace HandBrakeWPF.Factories IsDvdNavDisabled = UserSettingService.GetUserSetting(UserSettingConstants.DisableLibDvdNav), EnableQuickSyncDecoding = UserSettingService.GetUserSetting(UserSettingConstants.EnableQuickSyncDecoding), UseQSVDecodeForNonQSVEnc = UserSettingService.GetUserSetting(UserSettingConstants.UseQSVDecodeForNonQSVEnc), - ScalingMode = UserSettingService.GetUserSetting(UserSettingConstants.ScalingMode), - PreviewScanCount = UserSettingService.GetUserSetting(UserSettingConstants.PreviewScanCount), - Verbosity = UserSettingService.GetUserSetting(UserSettingConstants.Verbosity), - MinScanDuration = UserSettingService.GetUserSetting(UserSettingConstants.MinScanDuration), + ScalingMode = UserSettingService.GetUserSetting(UserSettingConstants.ScalingMode, typeof(int)), + PreviewScanCount = UserSettingService.GetUserSetting(UserSettingConstants.PreviewScanCount, typeof(int)), + Verbosity = UserSettingService.GetUserSetting(UserSettingConstants.Verbosity, typeof(int)), + MinScanDuration = UserSettingService.GetUserSetting(UserSettingConstants.MinScanDuration, typeof(int)), SaveLogToCopyDirectory = UserSettingService.GetUserSetting(UserSettingConstants.SaveLogToCopyDirectory), SaveLogWithVideo = UserSettingService.GetUserSetting(UserSettingConstants.SaveLogWithVideo), SaveLogCopyDirectory = UserSettingService.GetUserSetting(UserSettingConstants.SaveLogCopyDirectory), RemoteServiceEnabled = UserSettingService.GetUserSetting(UserSettingConstants.RemoteServiceEnabled), - RemoteServicePort = UserSettingService.GetUserSetting(UserSettingConstants.RemoteServicePort) + RemoteServicePort = UserSettingService.GetUserSetting(UserSettingConstants.RemoteServicePort, typeof(int)) }; return config; -- cgit v1.2.3