Fixed the Notification errors
This commit is contained in:
@@ -241,16 +241,7 @@ Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [INFO] Replay Buffer confi
|
||||
# --- Notify user that the replay buffer is active ---
|
||||
$notifyScript = Join-Path $PSScriptRoot 'Show-Notification.ps1'
|
||||
$bufferMinutes = [math]::Round($config.BufferSeconds / 60)
|
||||
Start-Process -FilePath 'powershell.exe' -ArgumentList @(
|
||||
'-STA'
|
||||
'-ExecutionPolicy', 'Bypass'
|
||||
'-NonInteractive'
|
||||
'-WindowStyle', 'Hidden'
|
||||
'-File', $notifyScript
|
||||
'-Type', 'BufferStarted'
|
||||
'-ContactNumber', $config.ITContactNumber
|
||||
'-BufferMinutes', $bufferMinutes
|
||||
) -WindowStyle Hidden
|
||||
Start-Process -FilePath 'powershell.exe' -ArgumentList "-STA -ExecutionPolicy Bypass -NonInteractive -WindowStyle Hidden -File `"$notifyScript`" -Type BufferStarted -ContactNumber `"$($config.ITContactNumber)`" -BufferMinutes $bufferMinutes" -WindowStyle Hidden
|
||||
Write-Host "$(Get-Date -Format 'yyyy-MM-dd HH:mm:ss') [INFO] User notification launched."
|
||||
|
||||
# --- Launch tray icon as a separate background process ---
|
||||
|
||||
Reference in New Issue
Block a user