diff --git a/BurntToast/Public/New-BTButton.ps1 b/BurntToast/Public/New-BTButton.ps1 index b888f6a..f414eb1 100644 --- a/BurntToast/Public/New-BTButton.ps1 +++ b/BurntToast/Public/New-BTButton.ps1 @@ -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. @@ -129,6 +130,10 @@ if ($Id) { $Button.SelectionBoxId = $Id } + + if ($ImageUri) { + $Button.ImageUri = $ImageUri + } } 'Dismiss' { if ($Content) {