Browse Source

Add footer page so selected category can be set

pull/324/head
Ionite 1 year ago
parent
commit
16f1dd636a
No known key found for this signature in database
  1. 6
      StabilityMatrix.Avalonia/Views/MainWindow.axaml.cs

6
StabilityMatrix.Avalonia/Views/MainWindow.axaml.cs

@ -167,9 +167,9 @@ public partial class MainWindow : AppWindowBase
{
var mainViewModel = (MainWindowViewModel)DataContext!;
mainViewModel.SelectedCategory = mainViewModel.Pages.FirstOrDefault(
x => x.GetType() == e.ViewModelType
);
mainViewModel.SelectedCategory = mainViewModel.Pages
.Concat(mainViewModel.FooterPages)
.FirstOrDefault(x => x.GetType() == e.ViewModelType);
}
private void OnUpdateAvailable(object? sender, UpdateInfo? updateInfo)

Loading…
Cancel
Save