Enable the quitAndInstall to be cancelled by beforeunload handler.
This commit is contained in:
parent
07fc2b41af
commit
274c9d04b1
3 changed files with 2 additions and 17 deletions
|
@ -20,9 +20,6 @@ autoUpdater.quitAndInstall = ->
|
|||
app = require 'app'
|
||||
app.removeAllListeners 'window-all-closed'
|
||||
app.once 'window-all-closed', AutoUpdater::quitAndInstall.bind(this)
|
||||
|
||||
# Tell all windows to remove beforeunload handler and then close itself.
|
||||
ipc = require 'ipc'
|
||||
ipc.sendChannel win, 'ATOM_SHELL_SILENT_CLOSE' for win in windows
|
||||
win.close() for win in windows
|
||||
|
||||
module.exports = autoUpdater
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue