Variables from User-Run moved
parent
30a3a43735
commit
55c4efdc69
|
@ -44,10 +44,6 @@ Get-NotifLocale
|
||||||
#Set common variables
|
#Set common variables
|
||||||
$OnClickAction = "$WorkingDir\logs\updates.log"
|
$OnClickAction = "$WorkingDir\logs\updates.log"
|
||||||
$Button1Text = $NotifLocale.local.outputs.output[11].message
|
$Button1Text = $NotifLocale.local.outputs.output[11].message
|
||||||
#The variables afterwards are used within Start-NotifTask.ps1
|
|
||||||
$Title = "Winget-AutoUpdate (WAU)"
|
|
||||||
$Balise = "Winget-AutoUpdate (WAU)"
|
|
||||||
$UserRun = $True
|
|
||||||
|
|
||||||
if ($Logs) {
|
if ($Logs) {
|
||||||
if (Test-Path "$WorkingDir\logs\updates.log") {
|
if (Test-Path "$WorkingDir\logs\updates.log") {
|
||||||
|
|
|
@ -14,6 +14,13 @@ function Start-NotifTask {
|
||||||
[Switch]$ButtonDismiss = $false
|
[Switch]$ButtonDismiss = $false
|
||||||
)
|
)
|
||||||
|
|
||||||
|
$caller = Get-ChildItem $MyInvocation.PSCommandPath | Select-Object -Expand Name
|
||||||
|
if ($caller -eq "User-Run.ps1") {
|
||||||
|
$Title = "Winget-AutoUpdate (WAU)"
|
||||||
|
$Balise = "Winget-AutoUpdate (WAU)"
|
||||||
|
$UserRun = $True
|
||||||
|
}
|
||||||
|
|
||||||
if (($WAUConfig.WAU_NotificationLevel -eq "Full") -or ($WAUConfig.WAU_NotificationLevel -eq "SuccessOnly" -and $MessageType -eq "Success") -or ($UserRun)) {
|
if (($WAUConfig.WAU_NotificationLevel -eq "Full") -or ($WAUConfig.WAU_NotificationLevel -eq "SuccessOnly" -and $MessageType -eq "Success") -or ($UserRun)) {
|
||||||
|
|
||||||
# XML Toast template creation
|
# XML Toast template creation
|
||||||
|
|
Loading…
Reference in New Issue