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

Make app.launch() faster by introducing an option #212

Merged
merged 1 commit into from
May 13, 2018

Conversation

txchen
Copy link
Contributor

@txchen txchen commented Apr 30, 2018

app.launch() now takes an extra options parameter. If focus is set to
true, then OC code will use NSWorkspaceLaunchDefault instead of
NSWorkspaceLaunchWithoutActivation to call launchApplicationAtURL. The
launched app will auto focus, and the speed will be noticeably faster.

  • Updated related documentations
  • Added the change to the Changelog

@mafredri
Copy link
Contributor

mafredri commented May 1, 2018

Nice, definitely feels more responsive than doing launch + focus 👍.

@@ -613,6 +613,10 @@ end

- `force` (boolean): if set `true` force terminates the app

### Launch Optionals
Copy link
Contributor

Choose a reason for hiding this comment

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

The description for launch(String appName) above should also be updated (sorry, GitHub doesn't let me comment there since it wasn't changed).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated.

app.launch() now takes an extra options parameter. If `focus` is set to
true, then OC code will use NSWorkspaceLaunchDefault instead of
NSWorkspaceLaunchWithoutActivation to call launchApplicationAtURL. The
launched app will auto focus, and the speed will be noticeably faster.
@txchen
Copy link
Contributor Author

txchen commented May 1, 2018

@kasper could you please take a look at merge this and ship 2.6.2? 💯

@kasper kasper self-assigned this May 13, 2018
@kasper kasper added this to the 2.6.2 milestone May 13, 2018
@kasper
Copy link
Owner

kasper commented May 13, 2018

Thanks!

@kasper kasper merged commit f70f0e0 into kasper:master May 13, 2018
kasper added a commit that referenced this pull request May 20, 2018
@kasper
Copy link
Owner

kasper commented Jun 7, 2018

@txchen Sorry for the wait. Released!

@txchen
Copy link
Contributor Author

txchen commented Jun 7, 2018

Thanks @kasper ! Now I can switch back to official release, yeah!

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

Successfully merging this pull request may close these issues.

3 participants