Fix non-functioning statements
This commit is contained in:
parent
963245b967
commit
023070b0c4
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ foreach ($pinnedItem in $startLayout.pinnedList) {
|
||||||
"*Instagram*",
|
"*Instagram*",
|
||||||
"*Chipchamp*",
|
"*Chipchamp*",
|
||||||
"*Facebook*"),
|
"*Facebook*"),
|
||||||
{
|
[System.Func[System.Object,bool]]{
|
||||||
param($pattern)
|
param($pattern)
|
||||||
return $pinnedItem.packageAppId -like "$pattern";
|
return $pinnedItem.packageAppId -like "$pattern";
|
||||||
})) {
|
})) {
|
||||||
|
@ -40,7 +40,7 @@ foreach ($pinnedItem in $startLayout.pinnedList) {
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ($item in $removalQueue) {
|
foreach ($item in $removalQueue) {
|
||||||
$startLayout.pinnedList.Remove($item);
|
$startLayout.pinnedList -= $item;
|
||||||
}
|
}
|
||||||
|
|
||||||
$startLayout | ConvertTo-Json | Set-Content $startLayoutFile;
|
$startLayout | ConvertTo-Json | Set-Content $startLayoutFile;
|
||||||
|
|
Loading…
Reference in a new issue