Skip to content

Commit

Permalink
Merge pull request #175 from QuinlanvanNunen/patch-1
Browse files Browse the repository at this point in the history
Added ImageUri as an option for Snooze
  • Loading branch information
Windos authored Oct 1, 2021
2 parents 24aeeaf + 94df9ca commit 1d28b2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions BurntToast/Public/New-BTButton.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@

# Specifies an image icon to display on the button.
[Parameter(ParameterSetName = 'Button')]
[Parameter(ParameterSetName = 'Snooze')]
[string] $ImageUri,

# Specifies the ID of a relevant Toast control.
Expand Down Expand Up @@ -129,6 +130,10 @@
if ($Id) {
$Button.SelectionBoxId = $Id
}

if ($ImageUri) {
$Button.ImageUri = $ImageUri
}
}
'Dismiss' {
if ($Content) {
Expand Down

0 comments on commit 1d28b2f

Please sign in to comment.