File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,12 @@ function Invoke-WPFFeatureInstall {
18
18
19
19
if ($FeatureConfig ) {
20
20
$Features = $FeatureConfig
21
- $automation = $true
22
21
} else {
23
22
$Features = (Get-WinUtilCheckBoxes )[" WPFFeature" ]
24
- $automation = $false
25
23
}
26
24
27
- Invoke-WPFRunspace - ArgumentList $Features , $automation - DebugPreference $DebugPreference - ScriptBlock {
28
- param ($Features , $automation , $ DebugPreference )
25
+ Invoke-WPFRunspace - ArgumentList $Features - DebugPreference $DebugPreference - ScriptBlock {
26
+ param ($Features , $DebugPreference )
29
27
$sync.ProcessRunning = $true
30
28
if ($Features.count -eq 1 ) {
31
29
$sync.form.Dispatcher.Invoke ([action ]{ Set-WinUtilTaskbaritem - state " Indeterminate" - value 0.01 - overlay " logo" })
Original file line number Diff line number Diff line change @@ -18,10 +18,8 @@ function Invoke-WPFInstall {
18
18
19
19
if ($InstallConfig ) {
20
20
$PackagesToInstall = $InstallConfig
21
- $automation = $true
22
21
} else {
23
22
$PackagesToInstall = (Get-WinUtilCheckBoxes )[" Install" ]
24
- $automation = $false
25
23
}
26
24
27
25
if ($PackagesToInstall.Count -eq 0 ) {
@@ -31,8 +29,8 @@ function Invoke-WPFInstall {
31
29
}
32
30
33
31
34
- Invoke-WPFRunspace - ArgumentList $PackagesToInstall , $automation - DebugPreference $DebugPreference - ScriptBlock {
35
- param ($PackagesToInstall , $automation , $ DebugPreference )
32
+ Invoke-WPFRunspace - ArgumentList $PackagesToInstall - DebugPreference $DebugPreference - ScriptBlock {
33
+ param ($PackagesToInstall , $DebugPreference )
36
34
if ($PackagesToInstall.count -eq 1 ) {
37
35
$sync.form.Dispatcher.Invoke ([action ]{ Set-WinUtilTaskbaritem - state " Indeterminate" - value 0.01 - overlay " logo" })
38
36
} else {
Original file line number Diff line number Diff line change @@ -18,10 +18,8 @@ function Invoke-WPFtweaksbutton {
18
18
19
19
if ($TweaksConfig ) {
20
20
$Tweaks = $TweaksConfig
21
- $automation = $true
22
21
} else {
23
22
$Tweaks = (Get-WinUtilCheckBoxes )[" WPFTweaks" ]
24
- $automation = $false
25
23
}
26
24
27
25
Set-WinUtilDNS - DNSProvider $sync [" WPFchangedns" ].text
@@ -34,8 +32,8 @@ function Invoke-WPFtweaksbutton {
34
32
35
33
Write-Debug " Number of tweaks to process: $ ( $Tweaks.Count ) "
36
34
37
- Invoke-WPFRunspace - ArgumentList $Tweaks , $automation - DebugPreference $DebugPreference - ScriptBlock {
38
- param ($Tweaks , $automation , $ DebugPreference )
35
+ Invoke-WPFRunspace - ArgumentList $Tweaks - DebugPreference $DebugPreference - ScriptBlock {
36
+ param ($Tweaks , $DebugPreference )
39
37
Write-Debug " Inside Number of tweaks to process: $ ( $Tweaks.Count ) "
40
38
41
39
$sync.ProcessRunning = $true
You can’t perform that action at this time.
0 commit comments