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

Comments

@fcollonval
Copy link
Member

@fcollonval fcollonval commented May 16, 2019

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
Member

@blink1073 blink1073 commented May 16, 2019

👍

@jasongrout jasongrout added this to the Future milestone May 21, 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.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

3 participants