summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2014-10-25 17:36:53 +0000
committersr55 <[email protected]>2014-10-25 17:36:53 +0000
commitb81f68b5228d93cf65ed6d45fd2677bb7434954d (patch)
tree99372d254a489c179a2d3dd1dab02990c96e73ba /win/CS
parent92f8fc94fc4f2e33654f08822a2b50165a2dfed9 (diff)
WinGui: Fix Queue Edit. Post action to update UI widgets wasn't firing.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6467 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS')
-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" />