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

Fix settings control not visible because of previous search #32135

Merged
merged 3 commits into from
Mar 3, 2025

Conversation

zihadmahiuddin
Copy link
Contributor

If SettingsOverlay is shown as a result of calling ShowAtControl and there was something written in the settings search text box previously, it wouldn't show the target control if it doesn't match the query. (#32122)
This PR makes it so the search text box is cleared before showing the settings.

It also makes SettingsPanel's SearchTextBox protected from private so that SettingsOverlay can access it. But I think that should be fine.

I couldn't find any tests for SettingsOverlay, only for SettingsPanel so I didn't add any tests for this. Let me know if I should add tests.

Closes #32122

This also makes `SettingsPanel`'s `SearchTextBox` protected from private so that `SettingsOverlay` can access it.
@zihadmahiuddin zihadmahiuddin requested a review from bdach February 28, 2025 13:09
@bdach bdach merged commit a33e767 into ppy:master Mar 3, 2025
7 of 10 checks passed
@zihadmahiuddin zihadmahiuddin deleted the fix/settings-show-at-visibility branch March 3, 2025 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Settings Search causes "adjust the global offset" to not display the field
2 participants