From 2d46f6f66f8ebb5a7eae9b846a09c2ab03d1347f Mon Sep 17 00:00:00 2001 From: Robert Stanfield Date: Fri, 13 May 2016 20:43:10 -0400 Subject: [PATCH] It isn't entirely clear to me that 'window-all-closed' is used for this purpose. I originally looked for an event that would fire if all windows were closed and the reason was NOT due to the application quitting; however, this differs in that it is called regardless of whether the app was quitting. --- docs/api/app.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/app.md b/docs/api/app.md index ef69f9e..262d0ee 100644 --- a/docs/api/app.md +++ b/docs/api/app.md @@ -34,7 +34,7 @@ Emitted when Electron has finished initialization. Emitted when all windows have been closed. -This event is only emitted when the application is not going to quit. If the +If you do not subscribe to this event and all windows are closed, the default behavior is to quit the app; however, if you subscribe, you control whether the app quits or not. If the user pressed `Cmd + Q`, or the developer called `app.quit()`, Electron will first try to close all the windows and then emit the `will-quit` event, and in this case the `window-all-closed` event would not be emitted. -- 2.7.4