Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Fix "Open Folder" menu item on Windows - #18855

Merged
daviwil merged 1 commit into
masterfrom
dw-fix-open-folder
Feb 15, 2019
Merged

daviwil merged 1 commit into
masterfrom
dw-fix-open-folder

Conversation

@daviwil

@daviwil daviwil commented Feb 15, 2019 •

Copy link
Copy Markdown
Contributor

Identify the Bug

Fixes #18835

Description of the Change

This change fixes an issue introduced by PR #17529 which caused the "File -> Open Folder" menu item to incorrectly launch the "Open File" dialog on Windows. The fix is to send the correct parameter folder to promptForPathToOpen when the application:open-folder command is executed. I've also moved the registration for these event handlers into a macOS-only code block so that they won't be activated on Windows (the original fix was only relevant to Atom instances on macOS where no windows were currently open).

Alternate Designs

None.

Possible Drawbacks

None.

Verification Process

  • Manually verify that the "Open Folder" dialog opens on Windows when clicking "File -> Open Folder"
  • Manually verify that the "File -> Open" dialog still enables files and folders to be opened when no Atom windows are currently open

Release Notes

N/A

@daviwil
daviwil merged commit eadb900 into master Feb 15, 2019
@daviwil
daviwil deleted the dw-fix-open-folder branch February 15, 2019 21:25
jasonrudolph pushed a commit that referenced this pull request Mar 12, 2019
Fix "Open Folder" menu item on Windows
jasonrudolph pushed a commit that referenced this pull request Mar 12, 2019
Fix "Open Folder" menu item on Windows
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Open Folder" activates "Open File" dialog instead

2 participants