mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-19 21:03:11 -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
|
@ -148,6 +148,10 @@ task<void> App::SetupJumpList()
|
|||
|
||||
for (NavCategory ^ option : calculatorOptions->Categories)
|
||||
{
|
||||
if (!option->IsEnabled)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
ViewMode mode = option->Mode;
|
||||
auto item = JumpListItem::CreateWithArguments(((int)mode).ToString(), L"ms-resource:///Resources/" + NavCategory::GetNameResourceKey(mode));
|
||||
item->Description = L"ms-resource:///Resources/" + NavCategory::GetNameResourceKey(mode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue