To a shutdown/restart of the system or a user logout. Event: 'quit' Įmitted when the application is quitting. The will-quit and window-all-closed events. See the description of the window-all-closed event for the differences between Event: 'will-quit' Įmitted when all windows have been closed and the application will quit. Note: On Windows, this event will not be emitted if the app is closed due Then before-quit is emitted after emitting close event on all windows and Note: If application quit was initiated by autoUpdater.quitAndInstall(), Will-quit event, and in this case the window-all-closed event would not beĮmitted before the application starts closing its windows.Ĭalling event.preventDefault() will prevent the default behavior, which is If the user pressed Cmd + Q, or the developer calledĪpp.quit(), Electron will first try to close all the windows and then emit the If you do not subscribe to this event and all windows are closed, the defaultīehavior is to quit the app however, if you subscribe, you control whether theĪpp quits or not. Event: 'window-all-closed' Įmitted when all windows have been closed. To get a Promise that is fulfilled when Electron is initialized. You can also call app.isReady() to check if this event has already fired and app.whenReady() That was used to open the application, if it was launched from Notification Center. Or information from UNNotificationResponse ![]() Holds the userInfo of the NSUserNotification ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |