This repository has been archived by the owner on Sep 13, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 149
Impossible to update the menu #245
Comments
You should use titlebar.refreshMenu(), an asynchronous method that refreshes the menu with what is in Menu.getApplicationMenu(), after updating the menu with the sample code you showed above. |
I update all menu like this:
refer |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Problem Description
On recent electron version, changing the menu using the example or other methods didnt work and the menu in the title bar simply disappear.
Steps to Reproduce
Expected Behavior
The title bar is updated with the new menu
Current Behavior
the menu disappear
Additional Information
11
v20.5.0
27.0.2
/ also didn't work on^26.0.0
The text was updated successfully, but these errors were encountered: