Skip to content

Expose current popover target in PopoverContainer#6743

Draft
JerryK73 wants to merge 1 commit into
ppy:masterfrom
JerryK73:exposePopover
Draft

Expose current popover target in PopoverContainer#6743
JerryK73 wants to merge 1 commit into
ppy:masterfrom
JerryK73:exposePopover

Conversation

@JerryK73
Copy link
Copy Markdown

@JerryK73 JerryK73 commented May 6, 2026

This pr was created to assist in fixing menu toggling using f3 (Issue #36331 on the main branch). Here is the pr for that as well.

This pr adds a public CurrentTarget property to PopoverContainer that exposes which IHasPopover source currently has a visible popover. This is needed to allow callers to determine whether a popover is already open before deciding to show or hide it.

private readonly Container dismissOnMouseDownContainer;

private IHasPopover? target;
public IHasPopover? CurrentTarget => target;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JerryK73 do you intend to fix this?

@JerryK73 JerryK73 marked this pull request as draft May 6, 2026 05:52
@bdach
Copy link
Copy Markdown
Collaborator

bdach commented May 6, 2026

You have authored contributions to other projects with self-disclosed LLM usage (example). LLM usage is not allowed in this repository.

Please disclose whether LLMs have been used to author this contribution in any capacity.

@JerryK73
Copy link
Copy Markdown
Author

JerryK73 commented May 6, 2026

Hi @bdach thanks for the comment, I did not use LLMs while developing this.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants