From 409eab2de8b9a4873ef27fd1b915a15aea069cd4 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Thu, 27 Oct 2022 01:26:02 +0200 Subject: [PATCH] log file on notif --- Winget-AutoUpdate/User-Run.ps1 | 7 ++++--- Winget-AutoUpdate/locale/de.xml | 3 +++ Winget-AutoUpdate/locale/en.xml | 4 ++++ Winget-AutoUpdate/locale/es.xml | 4 ++++ Winget-AutoUpdate/locale/fi.xml | 4 ++++ Winget-AutoUpdate/locale/fr.xml | 4 ++++ Winget-AutoUpdate/locale/hu.xml | 4 ++++ Winget-AutoUpdate/locale/it.xml | 4 ++++ Winget-AutoUpdate/locale/nl.xml | 4 ++++ Winget-AutoUpdate/locale/pl.xml | 4 ++++ Winget-AutoUpdate/locale/sv.xml | 4 ++++ 11 files changed, 43 insertions(+), 3 deletions(-) diff --git a/Winget-AutoUpdate/User-Run.ps1 b/Winget-AutoUpdate/User-Run.ps1 index cdb86a9..9420432 100644 --- a/Winget-AutoUpdate/User-Run.ps1 +++ b/Winget-AutoUpdate/User-Run.ps1 @@ -40,6 +40,7 @@ $Script:WorkingDir = $PSScriptRoot #Set common variables $OnClickAction = "$WorkingDir\logs\updates.log" +$Button1Text = $NotifLocale.local.outputs.output[11].message $Title = "Winget-AutoUpdate (WAU)" $Balise = "Winget-AutoUpdate (WAU)" $UserRun = $True @@ -55,7 +56,7 @@ if ($Logs) { #Not available yet $Message = $NotifLocale.local.outputs.output[5].message $MessageType = "warning" - Start-NotifTask -Message $Message -MessageType $MessageType + Start-NotifTask -Message $Message -MessageType $MessageType -Button1Text $Button1Text -Button1Action $OnClickAction -ButtonDismiss } } elseif ($Help) { @@ -82,12 +83,12 @@ else { } $Message = $NotifLocale.local.outputs.output[9].message $MessageType = "success" - Start-NotifTask -Message $Message -MessageType $MessageType + Start-NotifTask -Message $Message -MessageType $MessageType -Button1Text $Button1Text -Button1Action $OnClickAction -ButtonDismiss } catch { #Check failed - Just send notification $Message = $NotifLocale.local.outputs.output[7].message $MessageType = "error" - Start-NotifTask -Message $Message -MessageType $MessageType + Start-NotifTask -Message $Message -MessageType $MessageType -Button1Text $Button1Text -Button1Action $OnClickAction -ButtonDismiss } } diff --git a/Winget-AutoUpdate/locale/de.xml b/Winget-AutoUpdate/locale/de.xml index 94a7cd9..bb95779 100644 --- a/Winget-AutoUpdate/locale/de.xml +++ b/Winget-AutoUpdate/locale/de.xml @@ -53,6 +53,9 @@ See changelog + + + Open log file diff --git a/Winget-AutoUpdate/locale/en.xml b/Winget-AutoUpdate/locale/en.xml index aca589b..6f927b0 100644 --- a/Winget-AutoUpdate/locale/en.xml +++ b/Winget-AutoUpdate/locale/en.xml @@ -54,5 +54,9 @@ See changelog + + + Open log file + diff --git a/Winget-AutoUpdate/locale/es.xml b/Winget-AutoUpdate/locale/es.xml index da6bf91..6942ab1 100644 --- a/Winget-AutoUpdate/locale/es.xml +++ b/Winget-AutoUpdate/locale/es.xml @@ -54,5 +54,9 @@ See changelog + + + Open log file + diff --git a/Winget-AutoUpdate/locale/fi.xml b/Winget-AutoUpdate/locale/fi.xml index c58fcb0..33e7d59 100644 --- a/Winget-AutoUpdate/locale/fi.xml +++ b/Winget-AutoUpdate/locale/fi.xml @@ -54,5 +54,9 @@ See changelog + + + Open log file + diff --git a/Winget-AutoUpdate/locale/fr.xml b/Winget-AutoUpdate/locale/fr.xml index 1220126..36e845c 100644 --- a/Winget-AutoUpdate/locale/fr.xml +++ b/Winget-AutoUpdate/locale/fr.xml @@ -54,5 +54,9 @@ Consulter le journal des modifications + + + Ouvrir le fichier log + diff --git a/Winget-AutoUpdate/locale/hu.xml b/Winget-AutoUpdate/locale/hu.xml index e4b8094..1b7cc55 100644 --- a/Winget-AutoUpdate/locale/hu.xml +++ b/Winget-AutoUpdate/locale/hu.xml @@ -54,5 +54,9 @@ See changelog + + + Open log file + diff --git a/Winget-AutoUpdate/locale/it.xml b/Winget-AutoUpdate/locale/it.xml index 5e108cd..b790c0f 100644 --- a/Winget-AutoUpdate/locale/it.xml +++ b/Winget-AutoUpdate/locale/it.xml @@ -54,5 +54,9 @@ See changelog + + + Open log file + diff --git a/Winget-AutoUpdate/locale/nl.xml b/Winget-AutoUpdate/locale/nl.xml index 5c8a456..c08bfed 100644 --- a/Winget-AutoUpdate/locale/nl.xml +++ b/Winget-AutoUpdate/locale/nl.xml @@ -54,5 +54,9 @@ See changelog + + + Open log file + diff --git a/Winget-AutoUpdate/locale/pl.xml b/Winget-AutoUpdate/locale/pl.xml index 3434fe8..5e7ca36 100644 --- a/Winget-AutoUpdate/locale/pl.xml +++ b/Winget-AutoUpdate/locale/pl.xml @@ -54,5 +54,9 @@ See changelog + + + Open log file + diff --git a/Winget-AutoUpdate/locale/sv.xml b/Winget-AutoUpdate/locale/sv.xml index 014ce37..24daec6 100644 --- a/Winget-AutoUpdate/locale/sv.xml +++ b/Winget-AutoUpdate/locale/sv.xml @@ -54,5 +54,9 @@ See changelog + + + Open log file +