From 91a6266d50a9c5261ac74af8b14acafd37b3fbd5 Mon Sep 17 00:00:00 2001 From: HetCreep Date: Sun, 21 Jun 2026 23:42:47 +0700 Subject: [PATCH] fix(gui): treat dismissed unsafe-removal confirmation as decline (#651) --- Scripts/Helpers/ConfirmUnsafeAppRemoval.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/Helpers/ConfirmUnsafeAppRemoval.ps1 b/Scripts/Helpers/ConfirmUnsafeAppRemoval.ps1 index 6203357..2e3f9bd 100644 --- a/Scripts/Helpers/ConfirmUnsafeAppRemoval.ps1 +++ b/Scripts/Helpers/ConfirmUnsafeAppRemoval.ps1 @@ -16,7 +16,7 @@ function ConfirmUnsafeAppRemoval { if ($SelectedApps -contains "Microsoft.WindowsStore") { $result = Show-MessageBox -Message 'Are you sure that you wish to uninstall the Microsoft Store? This app cannot easily be reinstalled.' -Title 'Are you sure?' -Button 'YesNo' -Icon 'Warning' -Owner $Owner - if ($result -eq 'No') { + if ($result -ne 'Yes') { return $false } } @@ -25,10 +25,10 @@ function ConfirmUnsafeAppRemoval { if ($SelectedApps -contains "Microsoft.WindowsTerminal") { $result = Show-MessageBox -Message 'Are you sure that you wish to remove Windows Terminal? Windows Terminal is the default command-line app for Windows. Ensure you are not running Win11Debloat via Windows Terminal before proceeding to avoid a mid-process failure.' -Title 'Are you sure?' -Button 'YesNo' -Icon 'Warning' -Owner $Owner - if ($result -eq 'No') { + if ($result -ne 'Yes') { return $false } } return $true -} \ No newline at end of file +}