log file on notif

pull/214/head
Romain 2022-10-27 01:26:02 +02:00 committed by GitHub
parent 8ad9012ba6
commit 409eab2de8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 43 additions and 3 deletions

View File

@ -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
}
}

View File

@ -53,6 +53,9 @@
<!--See changelog-->
<message>See changelog</message>
</output>
<output id="11">
<!--Open log file-->
<message>Open log file</message>
</output>
</outputs>
</local>

View File

@ -54,5 +54,9 @@
<!--See changelog-->
<message>See changelog</message>
</output>
<output id="11">
<!--Open log file-->
<message>Open log file</message>
</output>
</outputs>
</local>

View File

@ -54,5 +54,9 @@
<!--See changelog-->
<message>See changelog</message>
</output>
<output id="11">
<!--Open log file-->
<message>Open log file</message>
</output>
</outputs>
</local>

View File

@ -54,5 +54,9 @@
<!--See changelog-->
<message>See changelog</message>
</output>
<output id="11">
<!--Open log file-->
<message>Open log file</message>
</output>
</outputs>
</local>

View File

@ -54,5 +54,9 @@
<!--See changelog-->
<message>Consulter le journal des modifications</message>
</output>
<output id="11">
<!--Open log file-->
<message>Ouvrir le fichier log</message>
</output>
</outputs>
</local>

View File

@ -54,5 +54,9 @@
<!--See changelog-->
<message>See changelog</message>
</output>
<output id="11">
<!--Open log file-->
<message>Open log file</message>
</output>
</outputs>
</local>

View File

@ -54,5 +54,9 @@
<!--See changelog-->
<message>See changelog</message>
</output>
<output id="11">
<!--Open log file-->
<message>Open log file</message>
</output>
</outputs>
</local>

View File

@ -54,5 +54,9 @@
<!--See changelog-->
<message>See changelog</message>
</output>
<output id="11">
<!--Open log file-->
<message>Open log file</message>
</output>
</outputs>
</local>

View File

@ -54,5 +54,9 @@
<!--See changelog-->
<message>See changelog</message>
</output>
<output id="11">
<!--Open log file-->
<message>Open log file</message>
</output>
</outputs>
</local>

View File

@ -54,5 +54,9 @@
<!--See changelog-->
<message>See changelog</message>
</output>
<output id="11">
<!--Open log file-->
<message>Open log file</message>
</output>
</outputs>
</local>