mirror of
https://github.com/kusti8/proton-native.git
synced 2026-05-15 14:15:50 -06:00
[GH-ISSUE #157] How are submenus supposed to work? #97
Labels
No labels
bug
documentation
enhancement
libui issue
pull-request
question
wait for libui implementation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/proton-native#97
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jesobreira on GitHub (Jun 14, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/157
The docs are clear:
However, this:
Causes this:
At least on Mac OS X 10.13.2, the "Load Transaction" item is rather created as a main menu, and not as submenu, despite it being inside a
<Menu>item.How was this supposed to be done? Perhaps an example on it could be added to the docs.
Note: I only tested it on OS X.
@mischnic commented on GitHub (Jun 14, 2018):
Submenues aren't supported. The docs are wrong.
@jesobreira commented on GitHub (Jun 14, 2018):
I see. Is this a libui limitation? Or it's something I can help with, on proton-native sphere?
@parro-it commented on GitHub (Jun 14, 2018):
Yes, ATM. See also andlabs/libui#321 and parro-it/libui-node#110
@jesobreira commented on GitHub (Jun 14, 2018):
Got it. May I create a PR that fixes the docs about it?
I also find it interesting to note that menus can be created inside
<React.Fragment>tags, so that users are able to import menus from external files.@mischnic commented on GitHub (Jun 17, 2018):
Sure.