From d588619ed52b2c962185c782d627d3bffd1f372a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kham=C3=BBl?= <32278516+LordOfRhun@users.noreply.github.com> Date: Sun, 10 May 2020 13:25:36 -0400 Subject: [PATCH] Using Rx to reset GameType --- Wabbajack/View Models/Gallery/ModListGalleryVM.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Wabbajack/View Models/Gallery/ModListGalleryVM.cs b/Wabbajack/View Models/Gallery/ModListGalleryVM.cs index 447eef0b..316c5764 100644 --- a/Wabbajack/View Models/Gallery/ModListGalleryVM.cs +++ b/Wabbajack/View Models/Gallery/ModListGalleryVM.cs @@ -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)