FilePicker: Boolean logic error /w AdditionalError check

This commit is contained in:
Justin Swanson 2019-11-05 21:10:43 -06:00
parent fa504a1b16
commit 471704bbe3

View File

@ -193,7 +193,7 @@ namespace Wabbajack
this._InError = Observable.CombineLatest(
this.WhenAny(x => x.Exists),
this.WhenAny(x => x.AdditionalError)
.Select(err => !err?.Succeeded ?? true),
.Select(err => !err?.Succeeded ?? false),
resultSelector: (exist, err) => !exist || err)
.ToProperty(this, nameof(this.InError));