diff options
author | sr55 <[email protected]> | 2015-04-12 15:03:25 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2015-04-12 15:03:25 +0000 |
commit | daa18af4633c27170a8bd7f880d232ca3c688d9b (patch) | |
tree | fb12ff1d1acb7da99ad922e911d2548e5363f3fb /win/CS/HandBrakeWPF/ViewModels | |
parent | ca97a5f5239a29e87470509add1fd68099e35f2c (diff) |
WinGui: Misc IScan API tweaks.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@7087 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index 2ba9744f6..71d8c6a73 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1811,13 +1811,16 @@ namespace HandBrakeWPF.ViewModels /// <param name="successful">
/// The successful.
/// </param>
- private void QueueEditAction(bool successful)
+ /// <param name="scannedSource">
+ /// The scanned Source.
+ /// </param>
+ private void QueueEditAction(bool successful, Source scannedSource)
{
/* TODO Fix this. */
Execute.OnUIThread(() =>
{
// Copy all the Scan data into the UI
- this.scanService.SouceData.CopyTo(this.ScannedSource);
+ scannedSource.CopyTo(this.ScannedSource);
this.NotifyOfPropertyChange(() => this.ScannedSource);
this.NotifyOfPropertyChange(() => this.ScannedSource.Titles);
@@ -1990,7 +1993,15 @@ namespace HandBrakeWPF.ViewModels /// </param>
private void ScanCompleted(object sender, ScanCompletedEventArgs e)
{
- this.scanService.SouceData.CopyTo(this.ScannedSource);
+ if (e.ScannedSource != null)
+ {
+ e.ScannedSource.CopyTo(this.ScannedSource);
+ }
+ else
+ {
+ this.ScannedSource = null;
+ }
+
Execute.OnUIThread(() =>
{
if (e.Successful)
|