[GH-ISSUE #58] Standard menu item are showed are checkbox menu. #32

Closed
opened 2026-05-05 11:29:34 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @parro-it on GitHub (Mar 19, 2018).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/58

It appears that they are added as standard menu item,
but then switched to check when checked property is set to default value of false here: https://github.com/kusti8/proton-native/blob/master/src/components/MenuBar.js#L74

Commenting this line make menu items appear as they should.
I don't know why libui change the menu item type once constructed, anyway, seems better to just remove the property setting on proton side, since a default menu item does not have the prop.

Originally created by @parro-it on GitHub (Mar 19, 2018). Original GitHub issue: https://github.com/kusti8/proton-native/issues/58 It appears that they are added as standard menu item, but then switched to check when `checked` property is set to default value of `false` here: https://github.com/kusti8/proton-native/blob/master/src/components/MenuBar.js#L74 Commenting this line make menu items appear as they should. I don't know why `libui` change the menu item type once constructed, anyway, seems better to just remove the property setting on proton side, since a default menu item does not have the prop.
Author
Owner

@parro-it commented on GitHub (Mar 19, 2018):

Should be solved by #57

<!-- gh-comment-id:374372981 --> @parro-it commented on GitHub (Mar 19, 2018): Should be solved by #57
Author
Owner

@kusti8 commented on GitHub (Mar 19, 2018):

Interesting. Thanks.

<!-- gh-comment-id:374373678 --> @kusti8 commented on GitHub (Mar 19, 2018): Interesting. Thanks.
Author
Owner

@mischnic commented on GitHub (Mar 19, 2018):

Basically the same problem as with https://github.com/kusti8/proton-native/pull/56.

<!-- gh-comment-id:374374823 --> @mischnic commented on GitHub (Mar 19, 2018): Basically the same problem as with https://github.com/kusti8/proton-native/pull/56.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/proton-native#32
No description provided.