Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Fix error when using Open With option in OSX finder #2366

Merged
merged 2 commits into from
Jun 30, 2018

Conversation

psxpaul
Copy link
Contributor

@psxpaul psxpaul commented Jun 27, 2018

Fixes #2041. I've never done anything with Electron or Typescript, so let me know if I'm doing anything crazy here 馃槂.

@codecov
Copy link

codecov bot commented Jun 27, 2018

Codecov Report

Merging #2366 into master will increase coverage by 0.03%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2366      +/-   ##
==========================================
+ Coverage   38.07%   38.11%   +0.03%     
==========================================
  Files         300      300              
  Lines       12508    12519      +11     
  Branches     1645     1645              
==========================================
+ Hits         4763     4771       +8     
- Misses       7491     7494       +3     
  Partials      254      254
Impacted Files Coverage 螖
browser/src/Services/Learning/Tutorial/Notes.tsx 52.45% <0%> (-0.13%) 猬囷笍
...src/Services/Configuration/DefaultConfiguration.ts 87.5% <0%> (酶) 猬嗭笍
...Learning/Tutorial/Tutorials/WordMotionTutorial.tsx 81.25% <0%> (+8.52%) 猬嗭笍

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update fd7ac52...ae6f9db. Read the comment docs.

main/src/main.ts Outdated
if (app.isReady()) {
createWindow(argsToUse, process.cwd())
} else {
app.on("ready", async () => {
Copy link
Member

Choose a reason for hiding this comment

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

@psxpaul thanks so much for the fix 馃憤 , One quick note is that the app.on("ready") callback is an async function in your change but we dont await createWindow which I believe is sync, its I think, a minor point but is it intentional?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the feedback! I removed the async keyword and re-tested.

Copy link
Member

@akinsho akinsho left a comment

Choose a reason for hiding this comment

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

@psxpaul thanks for making that change looks good 馃憤

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants