Removed GroupName from JumpList so items can't be pinened or removed by user. (#499)

https://stackoverflow.com/a/39436591/942659
This commit is contained in:
Mahdi Ghiasi 2019-05-14 04:31:28 +04:30 committed by Eric Wong
parent d8cb5c82a8
commit 860d6d3eb2

View File

@ -180,7 +180,6 @@ task<void> App::SetupJumpList()
ViewMode mode = option->Mode; ViewMode mode = option->Mode;
auto item = JumpListItem::CreateWithArguments(((int)mode).ToString(), L"ms-resource:///Resources/" + NavCategory::GetNameResourceKey(mode)); auto item = JumpListItem::CreateWithArguments(((int)mode).ToString(), L"ms-resource:///Resources/" + NavCategory::GetNameResourceKey(mode));
item->Description = L"ms-resource:///Resources/" + NavCategory::GetNameResourceKey(mode); item->Description = L"ms-resource:///Resources/" + NavCategory::GetNameResourceKey(mode);
item->GroupName = L"ms-resource:///Resources/" + NavCategoryGroup::GetHeaderResourceKey(calculatorOptions->GroupType);
item->Logo = ref new Uri("ms-appx:///Assets/" + mode.ToString() + ".png"); item->Logo = ref new Uri("ms-appx:///Assets/" + mode.ToString() + ".png");
jumpList->Items->Append(item); jumpList->Items->Append(item);