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

Let the menu popup default to showing on the currently focused BrowserWindow #131

Merged
merged 1 commit into from Feb 28, 2019

Conversation

leekevinyg
Copy link
Contributor

@leekevinyg leekevinyg commented Jan 30, 2019

It looks like menu.popup() defaults to the currently focused BrowserWindow now, so there is no need to specify it with remote.getCurrentWindow(). This change also workarounds an issue where remote.getCurrentWindow() may return null in some environments, resulting in a popup to not appear as expected.

@leekevinyg leekevinyg changed the title Let the menu popup default to showing on the currently focused window Let the menu popup default to showing on the currently focused BrowserWindow Jan 30, 2019
@felixrieseberg felixrieseberg merged commit 2e09368 into electron-userland:master Feb 28, 2019
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.

None yet

2 participants