=Fixes
This commit is contained in:
parent
c5311de65a
commit
685077b250
|
@ -119,7 +119,7 @@ if( $AutoSections ) {
|
||||||
$pairs = , $pairs
|
$pairs = , $pairs
|
||||||
}
|
}
|
||||||
foreach( $local:s in $pairs ) {
|
foreach( $local:s in $pairs ) {
|
||||||
Write-Verbose "$p : $($s | Join-String ", ")"
|
Write-Verbose "$p : $($s | Join-String -Separator ", ")"
|
||||||
$fancyZone.info.zones += [ordered]@{
|
$fancyZone.info.zones += [ordered]@{
|
||||||
X = [Math]::Round(($s[0] - 1) * $wFactor,0)
|
X = [Math]::Round(($s[0] - 1) * $wFactor,0)
|
||||||
Y = [Math]::Round(($s[1] - 1) * $hFactor,0)
|
Y = [Math]::Round(($s[1] - 1) * $hFactor,0)
|
||||||
|
@ -149,7 +149,7 @@ if( -not $WhatIf -and -not $WhatIfPreference ) {
|
||||||
if( -not (Test-Path "$fzJsonPath.bak") ) {
|
if( -not (Test-Path "$fzJsonPath.bak") ) {
|
||||||
Copy-Item $fzJsonPath "$fzJsonPath.bak"
|
Copy-Item $fzJsonPath "$fzJsonPath.bak"
|
||||||
}
|
}
|
||||||
$fzJson | ConvertTo-Json -Depth 5 | Out-File $fzJsonPath
|
$fzJson | ConvertTo-Json -Depth 5 | ForEach-Object { $_ -replace '\.0(,?\r?\n)','$1' } | Out-File $fzJsonPath
|
||||||
} else {
|
} else {
|
||||||
$fancyZone | ConvertTo-Json -Depth 5
|
$fancyZone | ConvertTo-Json -Depth 5 | ForEach-Object { $_ -replace '\.0(,?\r?\n)','$1' }
|
||||||
}
|
}
|
|
@ -4,7 +4,7 @@
|
||||||
"Condition": [
|
"Condition": [
|
||||||
{
|
{
|
||||||
"System": [
|
"System": [
|
||||||
"Desktop"
|
"Desktop","Windows"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue