Don't emit will-quit
event when calling app.exit
This commit is contained in:
parent
d2e63dfc64
commit
388a18b265
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ void Browser::Exit(int code) {
|
|||
// Must destroy windows before quitting, otherwise bad things can happen.
|
||||
atom::WindowList* window_list = atom::WindowList::GetInstance();
|
||||
if (window_list->size() == 0) {
|
||||
NotifyAndShutdown();
|
||||
Shutdown();
|
||||
} else {
|
||||
// Unlike Quit(), we do not ask to close window, but destroy the window
|
||||
// without asking.
|
||||
|
|
Loading…
Reference in a new issue