fix(desktop-update): drop the dead WinForms pump from the ack wait

Publish-UiEvent only enters the delivery-wait loop under $script:UiServer,
and Show-ProgressWindow returns before the WinForms card is built whenever
the browser shim is up, so $script:Ui is always null there. The DoEvents
call could never run; the 50ms sleep loop is the whole wait.
This commit is contained in:
Teknium
2026-09-06 02:40:48 -07:00
parent a6a19fbe69
commit d024a9c494
-1
View File
@@ -308,7 +308,6 @@ function Publish-UiEvent([string]$Status, [string]$Message) {
$deliveryWait = [System.Diagnostics.Stopwatch]::StartNew()
while ($script:UiState.acknowledged_receipt -cne $receipt -and $deliveryWait.Elapsed.TotalSeconds -lt 10) {
Start-Sleep -Milliseconds 50
if ($script:Ui) { [System.Windows.Forms.Application]::DoEvents() }
}
if ($script:UiState.acknowledged_receipt -ceq $receipt) {
Write-HandoffLog "shim: terminal state '$Status' acknowledged by the window"