提交 65f243f0 编写于 作者: A anthony

7149085: [macosx] Quit with QuitStrategy CLOSE_ALL_WINDOWS does terminate application

Summary: Don't force the termination of the event loop in the Quit action handler
Reviewed-by: art
上级 f1fd38ed
......@@ -157,7 +157,10 @@ class _AppEventHandler {
}
});
} finally {
nativeReplyToAppShouldTerminate(true);
// Either we've just called System.exit(), or the app will call
// it when processing a WINDOW_CLOSING event. Either way, we reply
// to Cocoa that we don't want to exit the event loop yet.
nativeReplyToAppShouldTerminate(false);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册