This commit is contained in:
GalSz (Varnois VDI) 2022-01-04 14:00:49 -05:00
parent c5311de65a
commit 685077b250
3 changed files with 4 additions and 4 deletions

View File

@ -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' }
} }

View File

@ -4,7 +4,7 @@
"Condition": [ "Condition": [
{ {
"System": [ "System": [
"Desktop" "Desktop","Windows"
] ]
} }
] ]