regression: do not write non-removables to white/black lists

commit 890c318872
Author: tlejolivet on Tue Aug 18 16:53:11 2020 +0200
    New simple designed UI for a better look !
pull/452/head
Justin Luth 3 years ago
parent a48b4d8dc5
commit 99aa537fba

@ -532,7 +532,7 @@ $CustomizeBlacklist.Add_Click( {
'$global:WhiteListedApps = @(' | Out-File -FilePath $PSScriptRoot\custom-lists.ps1 -Encoding utf8
@($ListPanel.controls) | ForEach {
if ($_ -is [System.Windows.Forms.CheckBox] -and $_.Enabled -and !$_.Checked) {
if ($_ -is [System.Windows.Forms.CheckBox] -and $_.AutoCheck -and !$_.Checked) {
" ""$( $_.Text )""" | Out-File -FilePath $PSScriptRoot\custom-lists.ps1 -Append -Encoding utf8
}
}
@ -540,7 +540,7 @@ $CustomizeBlacklist.Add_Click( {
'$global:Bloatware = @(' | Out-File -FilePath $PSScriptRoot\custom-lists.ps1 -Append -Encoding utf8
@($ListPanel.controls) | ForEach {
if ($_ -is [System.Windows.Forms.CheckBox] -and $_.Enabled -and $_.Checked) {
if ($_ -is [System.Windows.Forms.CheckBox] -and $_.AutoCheck -and $_.Checked) {
" ""$($_.Text)""" | Out-File -FilePath $PSScriptRoot\custom-lists.ps1 -Append -Encoding utf8
}
}

Loading…
Cancel
Save