(2.7.0) Show-UDToast -ReplaceToast not working

(2.7.0) Show-UDToast -ReplaceToast not working

avatar
(anonymous user)

I noticed the ‘ReplaceToast’ parameter on the Show-UDToast cmdlet. Either I misunderstand the function of this parameter or I am not using it right.

    Show-UDToast -Id tstSyncDraft -message "Syncing.." -Duration 5000 -ReplaceToast
      
Do-someting
        
        Show-UDToast -Id tstSyncDraft -message "Sync complete " -Duration 5000 -ReplaceToast


My expectation is that the second toast will replace the first, but it just goes on top of it. What Am I doing wrong?

All Comments (4)

avatar

Hi @AnonymousUser
Welcome to the UD Forums!

This looks like a bug to me, could you file this on the git of hubs?


GitHub

avatar

Worth noting:
I’ve replicated this bug on UD version 2.8.1.

avatar

Either this is still an issue, or the docs could use to have this function included. @Adam Driscoll

avatar

Replace toast works for me as long as I include an ID with my toast.

Show-UDToast 'Hey' -ReplaceToast -Id 'myId'


Adam Driscoll
PowerShell Expert and Developer at Devolutions