diff --git a/Windows10DebloaterGUI.ps1 b/Windows10DebloaterGUI.ps1 index d90341a..90aac6b 100644 --- a/Windows10DebloaterGUI.ps1 +++ b/Windows10DebloaterGUI.ps1 @@ -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 } }