From 830bb18b173a1c68720eb0df2ed860daea7d4c7e Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 19 Nov 2013 22:30:26 +0000 Subject: WinGui: Removed the need for the user settings service from IEncode and IScan interfaces and various other places. This makes the API much simpler to use. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5897 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs') diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 68e4077d7..d20657728 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1301,7 +1301,7 @@ namespace HandBrakeWPF.ViewModels { // Rescan the source to make sure it's still valid this.queueEditTask = task; - this.scanService.Scan(task.Source, task.Title, this.UserSettingService.GetUserSetting(ASUserSettingConstants.PreviewScanCount), QueueEditAction, HBConfigurationFactory.Create()); + this.scanService.Scan(task.Source, task.Title, QueueEditAction, HBConfigurationFactory.Create()); } /// @@ -1335,13 +1335,7 @@ namespace HandBrakeWPF.ViewModels public void ShowCliQuery() { this.errorService.ShowMessageBox( - QueryGeneratorUtility.GenerateQuery(this.CurrentTask, - userSettingService.GetUserSetting(ASUserSettingConstants.PreviewScanCount), - userSettingService.GetUserSetting(ASUserSettingConstants.Verbosity), - HBConfigurationFactory.Create().IsDvdNavDisabled, - userSettingService.GetUserSetting(ASUserSettingConstants.DisableQuickSyncDecoding), - userSettingService.GetUserSetting(ASUserSettingConstants.EnableDxva), - userSettingService.GetUserSetting(ASUserSettingConstants.ScalingMode) == VideoScaler.BicubicCl), + QueryGeneratorUtility.GenerateQuery(this.CurrentTask, HBConfigurationFactory.Create()), "CLI Query", MessageBoxButton.OK, MessageBoxImage.Information); @@ -1627,7 +1621,7 @@ namespace HandBrakeWPF.ViewModels { if (!string.IsNullOrEmpty(filename)) { - this.scanService.Scan(filename, title, this.UserSettingService.GetUserSetting(ASUserSettingConstants.PreviewScanCount), null, HBConfigurationFactory.Create()); + this.scanService.Scan(filename, title, null, HBConfigurationFactory.Create()); } } -- cgit v1.2.3