From b5c576519bd185e72f3d211c04aad8e035b4fe7f Mon Sep 17 00:00:00 2001 From: Raphire <9938813+Raphire@users.noreply.github.com> Date: Mon, 23 Mar 2026 21:08:16 +0100 Subject: [PATCH] Remove unnecessary parameter handling --- Scripts/GUI/Show-MainWindow.ps1 | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/Scripts/GUI/Show-MainWindow.ps1 b/Scripts/GUI/Show-MainWindow.ps1 index 5c18132..801a71d 100644 --- a/Scripts/GUI/Show-MainWindow.ps1 +++ b/Scripts/GUI/Show-MainWindow.ps1 @@ -1505,17 +1505,6 @@ function Show-MainWindow { return } - # Keep runtime/control parameters and clear actionable selections before adding selected revert targets. - $actionableKeys = @() - foreach ($k in $script:Params.Keys) { - if ($script:ControlParams -notcontains $k) { - $actionableKeys += $k - } - } - foreach ($k in $actionableKeys) { - $script:Params.Remove($k) - } - AddParameter 'Undo' foreach ($featureId in $selectedFeatureIds) { @@ -1527,10 +1516,8 @@ function Show-MainWindow { } } - # Use the existing apply modal to execute and present progress/completion. Show-ApplyModal -Owner $window -RestartExplorer $shouldRestartExplorer - # Close the main window after the apply dialog closes $window.Close() }) }