From 8953042ee3e868d8c7d275f70e69f13b2b63c5cc Mon Sep 17 00:00:00 2001 From: Ajey Charantimath Date: Wed, 25 Oct 2017 20:29:49 +0530 Subject: [PATCH] Updated auto-updater.md Missing documentation on the issue https://github.com/electron/electron/issues/10903 --- docs/api/auto-updater.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/api/auto-updater.md b/docs/api/auto-updater.md index 9631ad759262..22a3793e2c8d 100644 --- a/docs/api/auto-updater.md +++ b/docs/api/auto-updater.md @@ -109,10 +109,12 @@ using this API. Restarts the app and installs the update after it has been downloaded. It should only be called after `update-downloaded` has been emitted. -**Note:** `autoUpdater.quitAndInstall()` will close all application windows +**Note 1:** `autoUpdater.quitAndInstall()` will close all application windows first and only emit `before-quit` event on `app` after that. This is different from the normal quit event sequence. +**Note 2:** If you don't call `autoUpdater.quitAndInstall()` after `update-downloaded` event has been emitted then you will get the updated app on the next start/run of your app. + [squirrel-mac]: https://github.com/Squirrel/Squirrel.Mac [server-support]: https://github.com/Squirrel/Squirrel.Mac#server-support [squirrel-windows]: https://github.com/Squirrel/Squirrel.Windows