Skip to content

Fix filename_filter property #106135

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented May 6, 2025

Fixes #104067
Supersedes #104492

The filename_filter property is now editable. Setting it to a non-empty String will automatically press the filter button to show the LineEdit. Unpressing the button still clears the filter.

tbh I'd just remove (unexpose) this property, there are many questionable things about its implementation. This PR at least makes it somewhat usable.

@KoBeWi KoBeWi added this to the 4.5 milestone May 6, 2025
@KoBeWi KoBeWi requested a review from a team as a code owner May 6, 2025 21:29
Comment on lines 1600 to +1602
filename_filter->grab_focus();
} else {
file_name_filter.clear();
Copy link
Member

Choose a reason for hiding this comment

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

Oof, there's filename_filter and file_name_filter in this class...?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, it confused me a lot while trying to make my own PR, which eventually led me to give up
I was literally going insane because of this lmao

Copy link
Member Author

Choose a reason for hiding this comment

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

Both were added in #88673

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh how nice having to deprecate properties added just a single version ago

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.

FileDialog's filename_filter field can't be edited in the inspector
4 participants