mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fixed status term used when in failed state
This commit is contained in:
parent
bd87c0c719
commit
5abcdc651b
@ -243,18 +243,24 @@ namespace Wabbajack
|
||||
}
|
||||
});
|
||||
|
||||
_progressTitle = Observable.CombineLatest(
|
||||
this.WhenAny(x => x.Compiling),
|
||||
this.WhenAny(x => x.StartedCompilation),
|
||||
resultSelector: (compiling, started) =>
|
||||
_progressTitle = this.WhenAnyValue(
|
||||
x => x.Compiling,
|
||||
x => x.StartedCompilation,
|
||||
x => x.Completed,
|
||||
selector: (compiling, started, completed) =>
|
||||
{
|
||||
if (compiling)
|
||||
{
|
||||
return "Compiling";
|
||||
}
|
||||
else if (started)
|
||||
{
|
||||
if (completed == null) return "Compiling";
|
||||
return completed.Value.Succeeded ? "Compiled" : "Failed";
|
||||
}
|
||||
else
|
||||
{
|
||||
return started ? "Compiled" : "Configuring";
|
||||
return "Configuring";
|
||||
}
|
||||
})
|
||||
.ToProperty(this, nameof(ProgressTitle));
|
||||
|
@ -285,18 +285,24 @@ namespace Wabbajack
|
||||
.Select(x => x?.StartsWith("https://") ?? false)
|
||||
.ObserveOnGuiThread());
|
||||
|
||||
_progressTitle = Observable.CombineLatest(
|
||||
this.WhenAny(x => x.Installing),
|
||||
this.WhenAny(x => x.StartedInstallation),
|
||||
resultSelector: (installing, started) =>
|
||||
_progressTitle = this.WhenAnyValue(
|
||||
x => x.Installing,
|
||||
x => x.StartedInstallation,
|
||||
x => x.Completed,
|
||||
selector: (installing, started, completed) =>
|
||||
{
|
||||
if (installing)
|
||||
{
|
||||
return "Installing";
|
||||
}
|
||||
else if (started)
|
||||
{
|
||||
if (completed == null) return "Installing";
|
||||
return completed.Value.Succeeded ? "Installed" : "Failed";
|
||||
}
|
||||
else
|
||||
{
|
||||
return started ? "Installed" : "Configuring";
|
||||
return "Configuring";
|
||||
}
|
||||
})
|
||||
.ToProperty(this, nameof(ProgressTitle));
|
||||
|
Loading…
Reference in New Issue
Block a user