Procházet zdrojové kódy

Refixed bug related to saving custom lists

Accidentally reintroduced bug with the bing search addition that affected saving the custom lists. It is now fixed.
Richard Newton před 4 roky
rodič
revize
ac2a4315b1
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      Windows10DebloaterGUI.ps1

+ 2 - 2
Windows10DebloaterGUI.ps1

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