提交 18276c0c 编写于 作者: J jp9000

UI: Only use shutdown separator upon successful close

Fixes an issue where the shutdown separator in the log file would always
appear even when the user decides not to shut down the program after
clicking close when still streaming/recording.
上级 8e149a5a
......@@ -2612,8 +2612,6 @@ void OBSBasic::ClearSceneData()
void OBSBasic::closeEvent(QCloseEvent *event)
{
blog(LOG_INFO, SHUTDOWN_SEPARATOR);
if (outputHandler && outputHandler->Active()) {
SetShowing(true);
......@@ -2631,6 +2629,8 @@ void OBSBasic::closeEvent(QCloseEvent *event)
if (!event->isAccepted())
return;
blog(LOG_INFO, SHUTDOWN_SEPARATOR);
if (updateCheckThread)
updateCheckThread->wait();
if (logUploadThread)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册