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

App doesn't quit without active window #5988

Open
oaleynik opened this issue Jun 27, 2017 · 3 comments
Open

App doesn't quit without active window #5988

oaleynik opened this issue Jun 27, 2017 · 3 comments
Assignees

Comments

@oaleynik
Copy link
Contributor

See the attached zip for example.
nw-app-quit-bug.zip

The app in the attached zip has javascript file as an entry point.
After 3 seconds there is an attempt to close application using nw.App.quit() - app doesn't quit.

If uncomment nw.Window.open('index.html', {show: false}, function () {}); app will quit successfully.

uname -a: Darwin Macbook-Pro-0x10.local 16.6.0 Darwin Kernel Version 16.6.0: Fri Apr 14 16:21:16 PDT 2017; root:xnu-3789.60.24~6/RELEASE_X86_64 x86_64

nwjs version: 0.23.5 (0.21.6 is also affected - I've not tested this with other versions)

@Christywl
Copy link
Contributor

I can reproduce this issue on Linux/Mac with nwjs-sdk-v0.23.5.

@mildmojo
Copy link

mildmojo commented Jan 30, 2019

I'm still experiencing this on macOS Sierra 10.12.6 with nwjs-v0.35.5.

I'm trying to build a windowless tray icon app. I stripped it down to minimal reproduction code, which doesn't even need a setTimeout:

// package.json
{
  "name": "tray-test",
  "main": "index.js"
}
// index.js
// Uncomment this line and the app quits as expected.
// nw.Window.open('', {show: false});
nw.App.quit();

@panther7
Copy link

#4227

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

No branches or pull requests

5 participants