-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Conversation
src/Squirrel/ShellFile.cs
Outdated
{ | ||
byte[] bytes = ((Guid)guid).ToByteArray(); | ||
var pv = new PropVariant() | ||
{ |
There was a problem hiding this comment.
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.
src/Squirrel/ShellFile.cs
Outdated
|
||
PropVariant varGuid = PropVariant.FromGuid(clsid); | ||
try | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too
src/Squirrel/ShellFile.cs
Outdated
errCode = propStore.Commit(); | ||
Marshal.ThrowExceptionForHR(errCode); | ||
} | ||
finally |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too
src/Squirrel/ShellFile.cs
Outdated
@@ -885,11 +924,33 @@ public void SetAppUserModelId(string appId) | |||
/// Sets the ToastActivatorCLSID | |||
/// </summary> | |||
public void SetToastActivatorCLSID(string clsid) | |||
{ | |||
Guid guid = Guid.Parse(clsid); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var
Thanks for the PR, need to fix a few things then we can merge this |
Fixed code style. Is there any document with code style or automatic style check? |
Hello Paul, were my changes OK or I can help with something? |
@dmitrya1979 Thanks, sorry I missed this! |
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