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

[Feature Request]: add config.hideDock to BrowserWindow.setHiddenInMissionControl #41999

Open
3 tasks done
tianjunnew opened this issue Apr 30, 2024 · 0 comments
Open
3 tasks done

Comments

@tianjunnew
Copy link

Preflight Checklist

Problem Description

assuming that I want to create a new BrowserWindow from an existing BrowserWindow, the older window should be in missing control (and show icon in dock) while the new one shouldn't. However, when I call newWindow.setHiddenInMissionControl the dock icon is hidden too, which is unexpected because the old window need to show in dock.
It can be worked around, adding app.dock.show() after setHiddenInMissionControl, but will cause the docker icon "hide and show". This is not the best solution.

Proposed Solution

add a second paramter to setHiddenInMissionControl, like setHiddenInMissionControl(true, { hideDock: false }), and the default value to hideDock is true.

Alternatives Considered

none

Additional Information

No response

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

No branches or pull requests

1 participant