removed the countdown from the BufferStarted notification
This commit is contained in:
@@ -143,6 +143,7 @@ if ($Type -eq 'BufferStarted') {
|
|||||||
$txtBody.Inlines.Add("`n`nIT can retrieve this file if needed for a support case.")
|
$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
|
# Countdown timer — auto-dismisses after 30 seconds
|
||||||
# Use a hashtable for shared state so the closure captures it by reference correctly
|
# Use a hashtable for shared state so the closure captures it by reference correctly
|
||||||
$state = @{ Tick = 30 }
|
$state = @{ Tick = 30 }
|
||||||
@@ -159,4 +160,8 @@ $timer.Add_Tick({
|
|||||||
}.GetNewClosure())
|
}.GetNewClosure())
|
||||||
$timer.Start()
|
$timer.Start()
|
||||||
$btnOK.Add_Click({ $timer.Stop(); $window.Close() }.GetNewClosure())
|
$btnOK.Add_Click({ $timer.Stop(); $window.Close() }.GetNewClosure())
|
||||||
|
} else {
|
||||||
|
$btnOK.Content = 'OK'
|
||||||
|
$btnOK.Add_Click({ $window.Close() }.GetNewClosure())
|
||||||
|
}
|
||||||
$window.ShowDialog() | Out-Null
|
$window.ShowDialog() | Out-Null
|
||||||
|
|||||||
Reference in New Issue
Block a user