-
Notifications
You must be signed in to change notification settings - Fork 16.4k
fix: tray.displayBalloon() does not work with custom icon on Windows #19330
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
Conversation
aa43366
to
ddf52bf
Compare
Which code did you use to test this? Doesn't seem to work for me 🤔 |
@deermichel just this snippet in Fiddle const icon = nativeImage.createFromPath('C:\\Windows\\WinSxS\\amd64_microsoft-windows-dxp-deviceexperience_31bf3856ad364e35_10.0.18362.1_none_19829bbf76ffad81\\ringtones.ico')
const tray = new Tray(icon)
tray.on('click', () => {
tray.displayBalloon({
title: 'Hello World!',
content: 'Lorem Ipsum',
icon
})
}) |
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.
Alright, confirmed ✅
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.
approving in agreement with issue description and confirmation by @deermichel of change efficacy.
Release Notes Persisted
|
I have automatically backported this PR to "6-0-x", please check out #19528 |
I have automatically backported this PR to "4-2-x", please check out #19529 |
I have automatically backported this PR to "5-0-x", please check out #19530 |
Description of Change
According to the NIIF_LARGE_ICON documentation:
The other option would be to keep the
SM_CXSMICON
size, but to drop theNIIF_LARGE_ICON
flag.Checklist
npm test
passesRelease Notes
Notes: Fixed
tray.displayBalloon()
not working with custom icon on Windows.