Skip to content

Commit 8478410

Browse files
author
RandomEngy
committed
Prevent DVD/Blu-ray drive sources from being added to source history.
1 parent 6213d4d commit 8478410

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

VidCoder/ViewModel/MainViewModel.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3331,7 +3331,11 @@ private void StartScan(string path)
33313331
else
33323332
{
33333333
this.SourceData = new VideoSource { Titles = this.scanInstance.Titles, FeatureTitle = this.scanInstance.FeatureTitle };
3334-
SourceHistory.AddToHistory(this.sourcePath);
3334+
3335+
if (this.SelectedSource != null && (this.SelectedSource.Type == SourceType.File || this.SelectedSource.Type == SourceType.VideoFolder))
3336+
{
3337+
SourceHistory.AddToHistory(this.sourcePath);
3338+
}
33353339

33363340
this.logger.Log("Scan completed");
33373341
}

0 commit comments

Comments
 (0)