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

Create menu before calling onReady on Windows #206

Merged
merged 1 commit into from
Feb 22, 2022

Conversation

simonlindholm
Copy link
Contributor

@simonlindholm simonlindholm commented Apr 30, 2021

Since 40effd0, onReady was getting called before the menu setup was fully done, resulting in errors when AddMenuItem was called early in onReady.

As far as I can tell there's no point in waiting for WM_CREATE; that message gets generated as a side-effect of calling CreateWindowEx and doesn't mean anything of importance.

Fixes #164, fixes #158, fixes #148.

Edit: probably also fixes #197.

@tul
Copy link

tul commented May 6, 2021

I think this will also fix #197

@Crosse Crosse merged commit 229901a into getlantern:master Feb 22, 2022
@simonlindholm simonlindholm deleted the create-menu-before-ready branch February 22, 2022 21:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants