Skip items that are not enabled when creating jump list (#1333)

* Fix jumplist bug

* Add extra check
This commit is contained in:
Pepe Rivera 2020-08-06 12:28:38 -07:00 committed by GitHub
parent 3309380907
commit 258833f266
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 1 deletions

View file

@ -75,7 +75,7 @@ void ApplicationViewModel::Categories::set(IObservableVector<NavCategoryGroup ^>
void ApplicationViewModel::Initialize(ViewMode mode)
{
if (!NavCategory::IsValidViewMode(mode))
if (!NavCategory::IsValidViewMode(mode) || !NavCategory::IsViewModeEnabled(mode))
{
mode = ViewMode::Standard;
}