Skip to content

Fix #2289 unwanted growing in scene context menu#2306

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
ntjess:fix-extra-ctx-menus
May 18, 2022
Merged

Fix #2289 unwanted growing in scene context menu#2306
j9ac9k merged 1 commit intopyqtgraph:masterfrom
ntjess:fix-extra-ctx-menus

Conversation

@ntjess
Copy link
Copy Markdown
Contributor

@ntjess ntjess commented May 18, 2022

Fixes #2289
Add extra condition to menu action logic that checks if menus were already previously inserted

This fix makes the decision to add all new actions at the end of the menu to preserve ordering of previously inserted objects. Note that other fixes could be chosen instead, i.e. always clear and reload the menu.

Add extra condition to menu action logic that checks if menus were already previously inserted
@j9ac9k
Copy link
Copy Markdown
Member

j9ac9k commented May 18, 2022

Thanks @ntjess this LGTM! Merging.

@j9ac9k j9ac9k merged commit 57fbcd6 into pyqtgraph:master May 18, 2022
@ntjess ntjess deleted the fix-extra-ctx-menus branch May 28, 2022 23:00
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.

Right-clicking adds to plotItem.vb.menu.actions()

2 participants