Refactor: ExecuteChanges to InvokeChanges, clean up for readability (#641)

This commit is contained in:
Jeffrey
2026-06-22 21:43:53 +02:00
committed by GitHub
parent 4891aa401a
commit 71e3f2e44d
5 changed files with 506 additions and 204 deletions

View File

@@ -69,7 +69,7 @@ function Show-ApplyModal {
$script:ApplyProgressBarEl.Value = 0
$script:ApplyModalInErrorState = $false
# Set up progress callback for ExecuteAllChanges
# Set up progress callback for Invoke-AllChanges
$script:ApplyProgressCallback = {
param($currentStep, $totalSteps, $stepName)
$script:ApplyStepNameEl.Text = $stepName
@@ -102,7 +102,7 @@ function Show-ApplyModal {
# Run changes in background to keep UI responsive
$applyWindow.Dispatcher.BeginInvoke([System.Windows.Threading.DispatcherPriority]::Background, [action]{
try {
ExecuteAllChanges
Invoke-AllChanges
$registryImportFailureCount = [int]$script:RegistryImportFailures