Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed type of property ToastActivatorCLSID in shortcut to VT_CLSID #1382

Merged
merged 2 commits into from
Nov 15, 2018

Conversation

dmitrya1979
Copy link

Currently ToastActivatorCLSID is VT_LPWSTR. As result toast notifications in Windows do not work since they expect VT_CLSID type. This minor fix corrects the issue

{
byte[] bytes = ((Guid)guid).ToByteArray();
var pv = new PropVariant()
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you follow the code style please.


PropVariant varGuid = PropVariant.FromGuid(clsid);
try
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too

errCode = propStore.Commit();
Marshal.ThrowExceptionForHR(errCode);
}
finally
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here too

@@ -885,11 +924,33 @@ public void SetAppUserModelId(string appId)
/// Sets the ToastActivatorCLSID
/// </summary>
public void SetToastActivatorCLSID(string clsid)
{
Guid guid = Guid.Parse(clsid);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

var

@anaisbetts
Copy link
Contributor

Thanks for the PR, need to fix a few things then we can merge this

@dmitrya1979
Copy link
Author

Fixed code style. Is there any document with code style or automatic style check?

@dmitrya1979
Copy link
Author

Hello Paul, were my changes OK or I can help with something?

@anaisbetts anaisbetts merged commit 783565b into Squirrel:master Nov 15, 2018
@anaisbetts
Copy link
Contributor

@dmitrya1979 Thanks, sorry I missed this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants