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

[menu-bar] Add Electron support for FilePicker #171

Merged
merged 2 commits into from
Feb 9, 2024

Conversation

gabrieldonadel
Copy link
Member

@gabrieldonadel gabrieldonadel commented Feb 9, 2024

Why

Closes ENG-11321

How

Use electron's dialog API to add support for the FilePicker module when running electron

Test Plan

Screen.Recording.2024-02-09.at.16.14.07.mov

Copy link

linear bot commented Feb 9, 2024

@@ -253,7 +253,7 @@ function Core(props: Props) {

const installAppFromURI = useCallback(
async (appURI: string) => {
let localFilePath = appURI.startsWith('/') ? appURI : undefined;
Copy link
Member Author

Choose a reason for hiding this comment

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

Local file paths do not start with a slash in Windows

@gabrieldonadel gabrieldonadel marked this pull request as ready for review February 9, 2024 19:16
@gabrieldonadel gabrieldonadel force-pushed the @gabrieldonadel/electron-file-picker branch from 2b14b3f to 0a9cea2 Compare February 9, 2024 19:49
@gabrieldonadel gabrieldonadel merged commit 2ac2496 into main Feb 9, 2024
1 check passed
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/electron-file-picker branch February 9, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants