Recent Items

This commit is contained in:
Jöran Malek 2024-02-10 23:47:45 +01:00
parent 2529b728ba
commit f703567aed
10 changed files with 62 additions and 12 deletions

View file

@ -17,8 +17,9 @@ public class LandingViewModel : ReactiveObject, IScreen
public LandingViewModel(LandingViewModelFactory factory)
{
_factory = factory;
Router.CurrentViewModel.Where(x => x is null)
.SelectMany(Observable.Return(factory.Create<OpenRecentViewModel>(this)))
.InvokeCommand<IRoutableViewModel>(Router.NavigateAndReset);
}