Using Rx to reset GameType

This commit is contained in:
Khamûl 2020-05-10 13:25:36 -04:00
parent 5e5c1bb384
commit d588619ed5

View File

@ -82,6 +82,15 @@ namespace Wabbajack
GameType = ALL_GAME_TYPE;
});
this.WhenAny(x => x.OnlyInstalled)
.Subscribe(val =>
{
if(val)
GameType = ALL_GAME_TYPE;
})
.DisposeWith(CompositeDisposable);
var random = new Random();
var sourceList = Observable.Return(Unit.Default)
.ObserveOn(RxApp.TaskpoolScheduler)