Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mvMenu: Resetting menu state if it's not open (#2245) #2246

Merged
merged 1 commit into from
Jan 6, 2024

Conversation

v-ein
Copy link
Contributor

@v-ein v-ein commented Dec 30, 2023


name: Pull Request
about: Create a pull request to help us improve
title: mvMenu: Resetting menu state if it's not open (#2245)
assignees: @hoffstadt


Closes #2245

Description:
Added a branch to DearPyGui::draw_menu() that resets menu state if the menu is not open.

Also, restored indentation in draw_menu() - it's much easier to read now.

Concerning Areas:
I'm not sure that the values that item.state.contextRegionAvail gets are consistent between the opened menu and the closed menu. But, would anyone ever use that property on a menu? So maybe this piece is not much of a concern, after all.

Also, restored indentation in draw_menu() - it's much easier to read now.
@hoffstadt hoffstadt merged commit 4eaf48e into hoffstadt:master Jan 6, 2024
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.

Focus handler on a menu doesn't see that the menu has lost focus
2 participants