Remove unnecessary parameter handling

This commit is contained in:
Raphire
2026-03-23 21:08:16 +01:00
parent b1cf364c7d
commit b5c576519b

View File

@@ -1505,17 +1505,6 @@ function Show-MainWindow {
return 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' AddParameter 'Undo'
foreach ($featureId in $selectedFeatureIds) { 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 Show-ApplyModal -Owner $window -RestartExplorer $shouldRestartExplorer
# Close the main window after the apply dialog closes
$window.Close() $window.Close()
}) })
} }