-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Cannot use ALT to split panes after opening Close...
tab submenu
#7941
Comments
(/cc @mpela81, if you want to have a fun debugging session 😄) |
Fantastic 😄 As far as I can see, when splitting panes we call To fix it, we could re-create the sub-items as well. Alternatively, the question is why creating the context menu again in the first place? |
If I had to guess, I'd say... "oversight"! |
so... we could just move the |
Fix for crash occurring when splitting a pane, due to tab context menu created multiple times. ## References #7728 ## PR Checklist * [x] Closes #7941 * [x] CLA signed. ## Detailed Description of the Pull Request / Additional comments When splitting panes the `Tab::Initialize` function is called again. This rebuilt the context menu from scratch and appended the existing Close... sub-menu items to a new parent, thus causing the crash. It is not necessary to re-create the context menu every time you split panes, it can be created only once. ## Validation Steps Performed Manual verification: - Play with the context menu, the Close... submenu is functioning - Split panes (ALT + New tab), no crash occurs and context menu still functioning
🎉This issue was addressed in #7961, which has now been successfully released as Handy links: |
Environment
Regression from #7728.
It looks like every time we try to split a pane, we try to re-register the menu items against the tab.
We try to reparent the menu items into a new context menu. Because of that, we eat an exception that they already have parents.
All Tab event registration fails afterwards for that tab.
The text was updated successfully, but these errors were encountered: