Remove redundant undo action logic for comboboxes

This commit is contained in:
Jeffrey
2026-05-30 16:13:48 +02:00
parent 9deeb295e7
commit 4332eaa833
2 changed files with 1 additions and 11 deletions

View File

@@ -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)
})
}
}
}
}