From 4332eaa833997198603ec07afed714debbe096dd Mon Sep 17 00:00:00 2001 From: Jeffrey <9938813+Raphire@users.noreply.github.com> Date: Sat, 30 May 2026 16:13:48 +0200 Subject: [PATCH] Remove redundant undo action logic for comboboxes --- Scripts/GUI/Show-MainWindow.ps1 | 10 ---------- Scripts/GUI/Show-RestoreBackupWindow.ps1 | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Scripts/GUI/Show-MainWindow.ps1 b/Scripts/GUI/Show-MainWindow.ps1 index bddef40..4d997ca 100644 --- a/Scripts/GUI/Show-MainWindow.ps1 +++ b/Scripts/GUI/Show-MainWindow.ps1 @@ -1863,16 +1863,6 @@ function Show-MainWindow { }) } } - elseif ($isNowIndex -eq 0 -and $wasIndex -gt 0 -and $wasIndex -le $mapping.Values.Count) { - $prevValue = $mapping.Values[$wasIndex - 1] - foreach ($fid in $prevValue.FeatureIds) { - $actions.Add([PSCustomObject]@{ - Action = 'Undo' - FeatureId = [string]$fid - Label = (Get-FeatureLabel -FeatureId $fid) - }) - } - } } } diff --git a/Scripts/GUI/Show-RestoreBackupWindow.ps1 b/Scripts/GUI/Show-RestoreBackupWindow.ps1 index 6fc9c41..a5eaac2 100644 --- a/Scripts/GUI/Show-RestoreBackupWindow.ps1 +++ b/Scripts/GUI/Show-RestoreBackupWindow.ps1 @@ -30,7 +30,7 @@ function Show-RestoreBackupWindow { Write-Host "User confirmed registry restore for $($backup.Target)." Restore-RegistryBackupState -Backup $backup $restoreResult.RestoredRegistry = $true - $successMessage = 'Registry backup restored successfully. Some changes may require a sign out or restart to take effect.' + $successMessage = 'Registry backup restored successfully. Some changes may require a restart to take effect.' } elseif ($dialogResult.Result -eq 'RestoreStartMenu') { $scope = $dialogResult.StartMenuScope