Skip to content

Fix BMenuItem shortcut default - #25

Open
cyberman wants to merge 1 commit into
coolcoder613eb:mainfrom
Be-Quiet-Home:fix-bmenuitem-shortcut-default
Open

Fix BMenuItem shortcut default#25
cyberman wants to merge 1 commit into
coolcoder613eb:mainfrom
Be-Quiet-Home:fix-bmenuitem-shortcut-default

Conversation

@cyberman

@cyberman cyberman commented Jul 29, 2026

Copy link
Copy Markdown

Problem

The optional BMenuItem shortcut is registered with the integer default 0, but pybind11 exposes the bound C++ char parameter as a Python string.

Constructing a menu item without an explicit shortcut therefore fails argument conversion.

Fix

Use the null character '\0' as the default value.

Validation

Verified construction without a shortcut and with explicit null and key shortcuts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants