fix: update RunOnce command handling to avoid & enforce length limits (#866)

This commit is contained in:
Jeffrey
2026-10-27 23:08:46 +01:00
committed by GitHub
parent 9f192bd343
commit 08b6ddde9e
5 changed files with 172 additions and 19 deletions
+1 -2
View File
@@ -185,9 +185,8 @@ function Show-ApplyModal {
}
}
if ($script:WingetDeferredRemovals -and $script:WingetDeferredRemovals.Count -gt 0) {
foreach ($appId in @($script:WingetDeferredRemovals.Keys | Sort-Object)) {
foreach ($appName in @(Get-DeferredAppRemovalLabels)) {
$tb = [System.Windows.Controls.TextBlock]::new()
$appName = Get-Translation -Key $appId -Field 'FriendlyName' -Section 'Apps'
$label = Get-Translation -Key 'ApplyRebootRequiredWingetDeferred' -FormatArgs @($appName)
$tb.Text = "$([char]0x2022) $label"
$tb.FontSize = 12