summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--win/CS/HandBrake.ApplicationServices/Services/LibScan.cs18
-rw-r--r--win/CS/HandBrakeWPF/Views/VideoView.xaml2
2 files changed, 17 insertions, 3 deletions
diff --git a/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs b/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs
index fd113c3a4..1bcde0aed 100644
--- a/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs
+++ b/win/CS/HandBrake.ApplicationServices/Services/LibScan.cs
@@ -89,6 +89,11 @@ namespace HandBrake.ApplicationServices.Services
/// </summary>
private IHandBrakeInstance instance;
+ /// <summary>
+ /// The post scan operation.
+ /// </summary>
+ private Action<bool> postScanOperation;
+
#endregion
/// <summary>
@@ -191,6 +196,9 @@ namespace HandBrake.ApplicationServices.Services
}
}
+ // Handle the post scan operation.
+ postScanOperation = postAction;
+
// Clear down the logging
this.logging.Clear();
@@ -369,8 +377,14 @@ namespace HandBrake.ApplicationServices.Services
IsScanning = false;
- if (this.ScanCompleted != null)
- this.ScanCompleted(this, new ScanCompletedEventArgs(false, null, string.Empty));
+ if (postScanOperation != null)
+ {
+ postScanOperation(true);
+ }
+ else
+ {
+ if (this.ScanCompleted != null) this.ScanCompleted(this, new ScanCompletedEventArgs(false, null, string.Empty));
+ }
}
/// <summary>
diff --git a/win/CS/HandBrakeWPF/Views/VideoView.xaml b/win/CS/HandBrakeWPF/Views/VideoView.xaml
index 071c1535d..b2df97138 100644
--- a/win/CS/HandBrakeWPF/Views/VideoView.xaml
+++ b/win/CS/HandBrakeWPF/Views/VideoView.xaml
@@ -90,7 +90,7 @@
Margin="10,0,0,0" ToolTip="{x:Static Properties:Resources.Video_LosslessWarningTooltip}" FontWeight="Bold" />
</StackPanel>
- <Slider Width="280" Value="{Binding RF}" HorizontalAlignment="Left" Maximum="{Binding QualityMax}" Minimum="{Binding QualityMin}"
+ <Slider Width="280" Value="{Binding RF, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" HorizontalAlignment="Left" Maximum="{Binding QualityMax}" Minimum="{Binding QualityMin}"
IsEnabled="{Binding IsConstantQuantity}" Margin="20,0,0,10"
ToolTip="{x:Static Properties:Resources.Video_QualitySlider}" Style="{StaticResource LongToolTipHolder}"
IsSnapToTickEnabled="True" TickFrequency="1" TickPlacement="BottomRight" />