-
Notifications
You must be signed in to change notification settings - Fork 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
mac/dialog: refactoring and additions #15859
base: master
Are you sure you want to change the base?
Conversation
use the configured file extensions from options to filter.
Download the artifacts for this pull request: |
Not much to say, looks ok. I'm mostly interested how will it work when using |
@kasper93 just a heads up, an initial implementation based on your PR including the changes from here. Akemi@813f53d i am not sure what the assert equivalent would be. following is only evaluated on
|
Thanks!
You can skip it. It's not important. It was just a check. What I aimed at is that. We return NULL if there is no selection and not NULL if there is at least one selection. To avoid cases where we return empty list (list with terminator only), which is valid, but I didn't want that. |
i see, that case should be handled by the guard that returns |
I will cherry-pick your commit to my branch, after this PR is merged. |
No. We want standard file selection dialog. We won't implement custom dialog to input strings or anything like that. Windows doesn't provide standard dialog that would provide what you want. Of course it is easy to make such dialog, it's not something that we want. For url you can just paste directly and it will open it. |
some dialog refactoring and additions, to make integrations with #15845 easier and prevent code duplications. needs a followup commit for #15845.
also shamelessly stole some ideas from @kasper93.