diff options
Diffstat (limited to 'win')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index f97ac2c8c..2ba64e37d 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -666,6 +666,7 @@ namespace HandBrakeWPF.ViewModels }
// Use the Path on the Title, or the Source Scan path if one doesn't exist.
+ this.SourceLabel = this.SourceName;
this.CurrentTask.Source = !string.IsNullOrEmpty(this.selectedTitle.SourceName) ? this.selectedTitle.SourceName : this.ScannedSource.ScanPath;
this.CurrentTask.Title = value.TitleNumber;
this.NotifyOfPropertyChange(() => this.StartEndRangeItems);
@@ -1577,16 +1578,7 @@ namespace HandBrakeWPF.ViewModels // Cleanup
this.ShowStatusWindow = false;
-
- if (this.SelectedTitle != null && !string.IsNullOrEmpty(this.SelectedTitle.SourceName))
- {
- this.SourceLabel = this.SelectedTitle.SourceName;
- }
- else
- {
- this.SourceLabel = this.SourceName;
- }
-
+ this.SourceLabel = this.SourceName;
this.StatusLabel = "Scan Completed";
});
}
@@ -1740,15 +1732,7 @@ namespace HandBrakeWPF.ViewModels this.ShowStatusWindow = false;
if (e.Successful)
{
- if (this.SelectedTitle != null && !string.IsNullOrEmpty(this.SelectedTitle.SourceName))
- {
- this.SourceLabel = this.SelectedTitle.SourceName;
- }
- else
- {
- this.SourceLabel = this.SourceName;
- }
-
+ this.SourceLabel = this.SourceName;
this.StatusLabel = "Scan Completed";
}
else if (!e.Successful && e.Exception == null)
|