mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Offloaded MO2InstallerVM's validity check to the background thread
This commit is contained in:
parent
d30f81ecbd
commit
1be9b49ae9
@ -58,10 +58,10 @@ namespace Wabbajack
|
|||||||
Location.AdditionalError = Observable.CombineLatest(
|
Location.AdditionalError = Observable.CombineLatest(
|
||||||
this.WhenAny(x => x.Location.TargetPath),
|
this.WhenAny(x => x.Location.TargetPath),
|
||||||
this.WhenAny(x => x.DownloadLocation.TargetPath),
|
this.WhenAny(x => x.DownloadLocation.TargetPath),
|
||||||
resultSelector: (target, download) =>
|
resultSelector: (target, download) => (target, download))
|
||||||
{
|
.ObserveOn(RxApp.MainThreadScheduler)
|
||||||
return MO2Installer.CheckValidInstallPath(target, download);
|
.Select(i => MO2Installer.CheckValidInstallPath(i.target, i.download))
|
||||||
});
|
.ObserveOnGuiThread();
|
||||||
|
|
||||||
CanInstall = Observable.CombineLatest(
|
CanInstall = Observable.CombineLatest(
|
||||||
this.WhenAny(x => x.Location.InError),
|
this.WhenAny(x => x.Location.InError),
|
||||||
|
Loading…
Reference in New Issue
Block a user