Skip to content

Fix BMenuField AllDetached callback dispatch - #19

Open
cyberman wants to merge 1 commit into
coolcoder613eb:mainfrom
Be-Quiet-Home:fix-bmenufield-alldetached-callback
Open

Fix BMenuField AllDetached callback dispatch#19
cyberman wants to merge 1 commit into
coolcoder613eb:mainfrom
Be-Quiet-Home:fix-bmenufield-alldetached-callback

Conversation

@cyberman

@cyberman cyberman commented Jul 28, 2026

Copy link
Copy Markdown

Problem

PyBMenuField::AllDetached() dispatches to the Python AllAttached() override instead of AllDetached().

Fix

Use AllDetached as the trampoline target.

Validation

Verified that detaching through the bound base methods now invokes DetachedFromWindow() and AllDetached().

Dispatch BMenuField::AllDetached to the matching Python override instead of AllAttached.

Add a focused regression test that enters the C++ trampoline paths and verifies both detach callbacks.
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