From ccc22ae28275ccaa114bbcf5827a28222f474704 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Thu, 27 Oct 2022 01:52:40 +0200 Subject: [PATCH] fix notif local function execution --- Winget-AutoUpdate/User-Run.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"