Added short circuit of MO2Installer interventions

So that new active installations replace any old pending queues
This commit is contained in:
Justin Swanson 2020-02-08 00:16:49 -06:00
parent 672be2e7d0
commit 4c842fe276

View File

@ -10,6 +10,7 @@ using System.Threading.Tasks;
using ReactiveUI;
using ReactiveUI.Fody.Helpers;
using Wabbajack.Common;
using Wabbajack.Common.StatusFeed;
using Wabbajack.Lib;
using Wabbajack.Util;
@ -105,7 +106,8 @@ namespace Wabbajack
.DisposeWith(CompositeDisposable);
// Hook onto user interventions, and intercept MO2 specific ones for customization
this.WhenAny(x => x.ActiveInstallation.LogMessages)
this.WhenAny(x => x.ActiveInstallation)
.Select(x => x?.LogMessages ?? Observable.Empty<IStatusMessage>())
.Switch()
.Subscribe(x =>
{