Skip to content

Commit

Permalink
WinGui: Fix grayscale filter in presets.
Browse files Browse the repository at this point in the history
  • Loading branch information
sr55 committed Feb 14, 2021
1 parent bc74648 commit 0edac3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions win/CS/HandBrakeWPF/ViewModelItems/Filters/GrayscaleFilter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

namespace HandBrakeWPF.ViewModelItems.Filters
{
using System.ComponentModel;

using Caliburn.Micro;

using HandBrakeWPF.Services.Encode.Model;
Expand All @@ -27,7 +25,6 @@ public GrayscaleFilter(EncodeTask currentTask, Action triggerTabChanged)
{
this.triggerTabChanged = triggerTabChanged;
this.CurrentTask = currentTask;

}

public EncodeTask CurrentTask { get; private set; }
Expand Down Expand Up @@ -58,7 +55,6 @@ public void SetPreset(Preset preset, EncodeTask task)
}

this.Grayscale = preset.Task.Grayscale;

}

public void UpdateTask(EncodeTask task)
Expand Down
1 change: 1 addition & 0 deletions win/CS/HandBrakeWPF/ViewModels/FiltersViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public void SetPreset(Preset preset, EncodeTask task)
this.DeblockFilter.SetPreset(preset, task);
this.ColourSpaceFilter.SetPreset(preset, task);
this.ChromaSmoothFilter.SetPreset(preset, task);
this.GrayscaleFilter.SetPreset(preset, task);
}

public void UpdateTask(EncodeTask task)
Expand Down

0 comments on commit 0edac3d

Please sign in to comment.