Default app exit code to 0
This commit is contained in:
parent
b5dec9990e
commit
adf9acc468
3 changed files with 8 additions and 5 deletions
|
@ -48,7 +48,10 @@ void Browser::Quit() {
|
|||
window_list->CloseAllWindows();
|
||||
}
|
||||
|
||||
void Browser::Exit(int code) {
|
||||
void Browser::Exit(mate::Arguments* args) {
|
||||
int code = 0;
|
||||
args->GetNext(&code);
|
||||
|
||||
if (!AtomBrowserMainParts::Get()->SetExitCode(code)) {
|
||||
// Message loop is not ready, quit directly.
|
||||
exit(code);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue