You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks to Josh and the other project supporters for all your great work!
When I click a notification or a button on a notification the notification disappears from the notification center. When I have two buttons and want to offer the user clicking the one and then also the other one, is this possible? I don't find a way to keep the notification in the notification center upon button click. Any idea?
My use case: I am running daily Chocolatey updates in the background. If one or more packages fail to update I want to send the user a toast with the option to open the log file that shows which updates broke and some details through the first button of the notification. The second button would then open the package cache folder in Explorer so the user could for instance upload to VirusTotal the packages that failed with checksum error (probably the most frequent error type on Chocolatey). If OK with VirusTotal, the user could then rerun "choco upgrade all" with parameter --ignore-checksums or update those packages manually at ChocolateyGUI.)
I tried combining both actions into a single button, but ist seems the quote nesting does not work or the string doesn't fit the buffer. Anyway, no action when clicking the combined actions button:
$ButtonOpenBoth = New-BTButton -Content "Open Log & Cache" -Arguments "pwsh.exe -NoProfile -WindowStyle Hidden -Command"Start-Process -FilePath '$logPath'; Start-Process -FilePath explorer.exe -ArgumentList '$cachePath'`""
I would need a separate helper script, that shares variable definitions with this script. Complicated, ugly.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks to Josh and the other project supporters for all your great work!
When I click a notification or a button on a notification the notification disappears from the notification center. When I have two buttons and want to offer the user clicking the one and then also the other one, is this possible? I don't find a way to keep the notification in the notification center upon button click. Any idea?
My use case: I am running daily Chocolatey updates in the background. If one or more packages fail to update I want to send the user a toast with the option to open the log file that shows which updates broke and some details through the first button of the notification. The second button would then open the package cache folder in Explorer so the user could for instance upload to VirusTotal the packages that failed with checksum error (probably the most frequent error type on Chocolatey). If OK with VirusTotal, the user could then rerun "choco upgrade all" with parameter --ignore-checksums or update those packages manually at ChocolateyGUI.)
I tried combining both actions into a single button, but ist seems the quote nesting does not work or the string doesn't fit the buffer. Anyway, no action when clicking the combined actions button:
$ButtonOpenBoth = New-BTButton -Content "Open Log & Cache" -Arguments
"pwsh.exe -NoProfile -WindowStyle Hidden -Command"Start-Process -FilePath '$logPath'; Start-Process -FilePath explorer.exe -ArgumentList '$cachePath'`""I would need a separate helper script, that shares variable definitions with this script. Complicated, ugly.
Beta Was this translation helpful? Give feedback.
All reactions