removed the countdown from the BufferStarted notification

This commit is contained in:
2026-03-30 13:48:56 -07:00
parent 41fc743026
commit a7fbf3bc22

View File

@@ -143,6 +143,7 @@ if ($Type -eq 'BufferStarted') {
$txtBody.Inlines.Add("`n`nIT can retrieve this file if needed for a support case.")
}
if ($Type -eq 'ReplaySaved') {
# Countdown timer — auto-dismisses after 30 seconds
# Use a hashtable for shared state so the closure captures it by reference correctly
$state = @{ Tick = 30 }
@@ -159,4 +160,8 @@ $timer.Add_Tick({
}.GetNewClosure())
$timer.Start()
$btnOK.Add_Click({ $timer.Stop(); $window.Close() }.GetNewClosure())
} else {
$btnOK.Content = 'OK'
$btnOK.Add_Click({ $window.Close() }.GetNewClosure())
}
$window.ShowDialog() | Out-Null