mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-03 19:53:50 -05:00
directly passing param into correct var
This commit is contained in:
@ -7,7 +7,7 @@ function Invoke-WPFFeatureInstall {
|
||||
#>
|
||||
|
||||
param (
|
||||
$FeatureConfig
|
||||
$Features
|
||||
)
|
||||
|
||||
if($sync.ProcessRunning) {
|
||||
@ -16,9 +16,7 @@ function Invoke-WPFFeatureInstall {
|
||||
return
|
||||
}
|
||||
|
||||
if ($FeatureConfig) {
|
||||
$Features = $FeatureConfig
|
||||
} else {
|
||||
if ([string]::IsNullOrEmpty($Features)) {
|
||||
$Features = (Get-WinUtilCheckBoxes)["WPFFeature"]
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@ function Invoke-WPFInstall {
|
||||
#>
|
||||
|
||||
param (
|
||||
$InstallConfig
|
||||
$PackagesToInstall
|
||||
)
|
||||
|
||||
if($sync.ProcessRunning) {
|
||||
@ -16,9 +16,7 @@ function Invoke-WPFInstall {
|
||||
return
|
||||
}
|
||||
|
||||
if ($InstallConfig) {
|
||||
$PackagesToInstall = $InstallConfig
|
||||
} else {
|
||||
if ([string]::IsNullOrEmpty($InstallConfig)) {
|
||||
$PackagesToInstall = (Get-WinUtilCheckBoxes)["Install"]
|
||||
}
|
||||
|
||||
|
@ -7,7 +7,7 @@ function Invoke-WPFtweaksbutton {
|
||||
#>
|
||||
|
||||
param (
|
||||
$TweaksConfig
|
||||
$Tweaks
|
||||
)
|
||||
|
||||
if($sync.ProcessRunning) {
|
||||
@ -16,9 +16,7 @@ function Invoke-WPFtweaksbutton {
|
||||
return
|
||||
}
|
||||
|
||||
if ($TweaksConfig) {
|
||||
$Tweaks = $TweaksConfig
|
||||
} else {
|
||||
if ([string]::IsNullOrEmpty($Tweaks)) {
|
||||
$Tweaks = (Get-WinUtilCheckBoxes)["WPFTweaks"]
|
||||
}
|
||||
|
||||
@ -32,8 +30,8 @@ function Invoke-WPFtweaksbutton {
|
||||
|
||||
Write-Debug "Number of tweaks to process: $($Tweaks.Count)"
|
||||
|
||||
Invoke-WPFRunspace -ArgumentList $Tweaks -DebugPreference $DebugPreference -ScriptBlock {
|
||||
param($Tweaks, $DebugPreference)
|
||||
Invoke-WPFRunspace -ArgumentList $Tweaks, $testvar -DebugPreference $DebugPreference -ScriptBlock {
|
||||
param($Tweaks, $testvar, $DebugPreference)
|
||||
Write-Debug "Inside Number of tweaks to process: $($Tweaks.Count)"
|
||||
|
||||
$sync.ProcessRunning = $true
|
||||
|
Reference in New Issue
Block a user