mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-07 13:41:09 -07:00
Skip items that are not enabled when creating jump list (#1333)
* Fix jumplist bug * Add extra check
This commit is contained in:
parent
3309380907
commit
258833f266
4 changed files with 14 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue