Fixed Begin button never being enabled if installing a Vortex ModList

This commit is contained in:
erri120 2019-11-11 13:18:37 +01:00 committed by Timothy Baldridge
parent 4203e394aa
commit 05791f363b

View File

@ -263,12 +263,15 @@ namespace Wabbajack
execute: this.ExecuteBegin,
canExecute: Observable.CombineLatest(
this.WhenAny(x => x.Installing),
this.WhenAny(x => x.Location.InError),
this.WhenAny(x => x.DownloadLocation.InError),
resultSelector: (installing, loc, download) =>
this.WhenAny(x => x.LocationError.InError),
this.WhenAny(x => x.DownloadLocationError.InError),
this.WhenAny(x => x.StagingLocationError.InError),
resultSelector: (installing, loc, download, staging) =>
{
if (installing) return false;
if (IsMO2ModList)
return !loc && !download;
return !loc && !staging;
})
.ObserveOnGuiThread());
this.VisitWebsiteCommand = ReactiveCommand.Create(