2
0
Эх сурвалжийг харах

Removed Cancel commands randomly placed in script

Richard Newton 6 жил өмнө
parent
commit
a1543ae59f
1 өөрчлөгдсөн 0 нэмэгдсэн , 12 устгасан
  1. 0 12
      Windows10Debloater.ps1

+ 0 - 12
Windows10Debloater.ps1

@@ -657,8 +657,6 @@ Switch ($Prompt1) {
             No {
                 = $No
             }
-            Cancel {
-            }
         }
         #Prompt asking to delete OneDrive
         $Prompt4 = [Windows.MessageBox]::Show($OneDriveDelete, "Delete OneDrive", $Button, $ErrorIco) 
@@ -670,8 +668,6 @@ Switch ($Prompt1) {
             No {
                 = $No
             }
-            Cancel {
-            }
         }
         #Prompt asking if you'd like to reboot your machine
         $Prompt5 = [Windows.MessageBox]::Show($Reboot, "Reboot", $Button, $Warn) 
@@ -694,8 +690,6 @@ Switch ($Prompt1) {
                 Start-Sleep 2
                 Exit; = $No
             }
-            Cancel {
-            }
         }
     }
     No {
@@ -713,8 +707,6 @@ Switch ($Prompt1) {
             No {
                 = $No
             }
-            Cancel {
-            }
         }
         #Prompt asking if you'd like to reboot your machine
         $Prompt7 = [Windows.MessageBox]::Show($Reboot, "Reboot", $Button, $Warn)
@@ -737,10 +729,6 @@ Switch ($Prompt1) {
                 Start-Sleep 2
                 Exit; = $No
             }
-            Cancel {
-            }
         }
     }
-    Cancel {
-    }
 }