diff --git a/Winget-AutoUpdate/User-Run.ps1 b/Winget-AutoUpdate/User-Run.ps1 index 0ce7e9f..5ec50a8 100644 --- a/Winget-AutoUpdate/User-Run.ps1 +++ b/Winget-AutoUpdate/User-Run.ps1 @@ -38,6 +38,9 @@ $Script:WorkingDir = $PSScriptRoot . $WorkingDir\functions\Get-NotifLocale.ps1 . $WorkingDir\functions\Start-NotifTask.ps1 +#Get Toast Locale function +Get-NotifLocale + #Set common variables $OnClickAction = "$WorkingDir\logs\updates.log" $Button1Text = $NotifLocale.local.outputs.output[11].message @@ -45,9 +48,6 @@ $Title = "Winget-AutoUpdate (WAU)" $Balise = "Winget-AutoUpdate (WAU)" $UserRun = $True -#Get Toast Locale function -Get-NotifLocale - if ($Logs) { if ((Test-Path "$WorkingDir\logs\updates.log")) { Invoke-Item "$WorkingDir\logs\updates.log"