mohabouje / WinToast

WinToast is a lightly library written in C++ which brings a complete integration of the modern toast notifications of Windows 8 & Windows 10. Toast notifications allows your app to inform the users about relevant information and timely events that they should see and take action upon inside your app, such as a new instant message, a new friend request, breaking news, or a calendar event.
MIT License
687 stars 127 forks source link

createShellLinkHelper disabled #60

Closed lollita closed 1 year ago

lollita commented 3 years ago

Why "create a Shell Link for the app"? I disable it and work however.

agashlin commented 3 years ago

Coincidentally, I am just now working on a PR to allow this to be disabled (in the process of fixing this bug). The shortcut is needed because a custom model (e.g. specifying action buttons) can't be used if there isn't a shortcut with the same AUMI as the app showing the notification. In my case we'd rather not show the notification instead of creating a useless shortcut to the notification app (which otherwise has no UI), so it is helpful to disable it.

agashlin commented 3 years ago

The documentation is actually a bit stronger, it says "Without a valid shortcut installed in the Start screen or in All Programs, you cannot raise a toast notification from a desktop app," but this doesn't seem to prevent showing any notification, just one with a custom model. This is why the shortcut was added along with the commit (8271b5bf0be1a1246735d712df1a24ee4e86f817) that added custom abstract models.

lollita commented 3 years ago

Thanks for the reply. I think an option would be more appropriate to avoid creating it when not using custom templates.