From: sr55 Date: Sat, 25 Oct 2014 17:36:53 +0000 (+0000) Subject: WinGui: Fix Queue Edit. Post action to update UI widgets wasn't firing. X-Git-Tag: 0.10.0~64 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b81f68b5228d93cf65ed6d45fd2677bb7434954d;p=handbrake 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 --- 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 /// private IHandBrakeInstance instance; + /// + /// The post scan operation. + /// + private Action postScanOperation; + #endregion /// @@ -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)); + } } /// 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" /> -