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

Open file/folder dialogs #6365

Closed
fcollonval opened this issue May 16, 2019 · 1 comment · Fixed by #6366
Closed

Open file/folder dialogs #6365

fcollonval opened this issue May 16, 2019 · 1 comment · Fixed by #6366
Assignees
Labels
enhancement status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Milestone

Comments

@fcollonval
Copy link
Member

Describe the enhancement

Similarly to #6326, it will be nice to have helper functions to select a file or a folder. I propose to mimic qt helper functions: https://doc.qt.io/qt-5/qfiledialog.html#static-public-members.

const result = await getOpenFileName();
if(result.button.accept){
  let files = result.value;
}

const result = await getExistingDirectory();
if(result.button.accept){
  let folders = result.value;
}
@fcollonval fcollonval self-assigned this May 16, 2019
@blink1073
Copy link
Contributor

👍

@jasongrout jasongrout added this to the Future milestone May 21, 2019
@lock lock bot added the status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion. label Sep 26, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement status:resolved-locked Closed issues are locked after 30 days inactivity. Please open a new issue for related discussion.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants