-
Notifications
You must be signed in to change notification settings - Fork 15k
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
fix: invoke app.dock.{hide|show}
instead of duplicating logic
#37599
Conversation
if (visibleOnFullScreen) { | ||
[window_ setCanHide:NO]; | ||
TransformProcessType(&psn, kProcessTransformToUIElementApplication); | ||
Browser::Get()->DockHide(); |
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.
👍 on reusing the workarounds found in DockHide() / DockShow() here.
This diff has a subtle change: instead of calling NSWindow setCanHide:NO]
for just window_
, Browser::DockHide()
calls it for everything in WindowList::GetWindows()
. Is that OK / intentional here?
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.
i'd say yes - imo the previous version (only doing it on window_
) was incorrect
Release Notes Persisted
|
I have automatically backported this PR to "22-x-y", please check out #37623 |
I have automatically backported this PR to "23-x-y", please check out #37624 |
I have automatically backported this PR to "24-x-y", please check out #37625 |
Description of Change
Closes #37487.
Fixes an issue with potential dock icon duplication on macOS by calling into our existing
app.dock.show
andapp.dock.hide
implementations, which are also subject to the duplication bugs but include workarounds to prevent them from happening.Tested with https://gist.github.com/PsychoLlama/fcb2790372b6e4957beac9be7e543d3d to verify no duplicates occur.
Checklist
npm test
passesRelease Notes
Notes: Fixes an issue with potential dock icon duplication on macOS.