Skip to content

Create menu before calling onReady on Windows#206

Merged
Crosse merged 1 commit intogetlantern:masterfrom
simonlindholm:create-menu-before-ready
Feb 22, 2022
Merged

Create menu before calling onReady on Windows#206
Crosse merged 1 commit intogetlantern:masterfrom
simonlindholm:create-menu-before-ready

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