Fixed empty images in slideshow

This commit is contained in:
erri120 2020-04-04 19:56:21 +02:00
parent d58fcab92e
commit 73e17931dc
No known key found for this signature in database
GPG Key ID: A8C0A18D8D4D3135

View File

@ -89,6 +89,7 @@ namespace Wabbajack
return modList.SourceModList.Archives
.Select(m => m.State)
.OfType<IMetaState>()
.Where(x => !string.IsNullOrEmpty(x.URL) && !string.IsNullOrEmpty(x.ImageURL))
.DistinctBy(x => x.URL)
// Shuffle it
.Shuffle(_random)