notification first ? better user experience i guess
parent
840fad03da
commit
9fed7d8879
|
@ -57,12 +57,12 @@ elseif ($Help) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
try {
|
try {
|
||||||
#Run scheduled task
|
|
||||||
Get-ScheduledTask -TaskName "Winget-AutoUpdate" -ErrorAction Stop | Start-ScheduledTask -ErrorAction Stop
|
|
||||||
#Starting check - Send notification
|
#Starting check - Send notification
|
||||||
$Message = $NotifLocale.local.outputs.output[6].message
|
$Message = $NotifLocale.local.outputs.output[6].message
|
||||||
$MessageType = "info"
|
$MessageType = "info"
|
||||||
Start-NotifTask $Title $Message $MessageType $Balise $OnClickAction
|
Start-NotifTask $Title $Message $MessageType $Balise $OnClickAction
|
||||||
|
#Run scheduled task
|
||||||
|
Get-ScheduledTask -TaskName "Winget-AutoUpdate" -ErrorAction Stop | Start-ScheduledTask -ErrorAction Stop
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
#Check failed - Just send notification
|
#Check failed - Just send notification
|
||||||
|
|
Loading…
Reference in New Issue