提交 fab5eb5b 编写于 作者: J jp9000

UI: Properly ensure save on exit

I broke the save that happens on exit by making all project saves put on
the message queue.  The save on exit would put the save on to the
message queue, then by the time the save occurred obs would already be
shut down.

This just calls the save function directly rather than deferring it to
the message queue.
上级 9f6f6d63
......@@ -2199,7 +2199,8 @@ void OBSBasic::closeEvent(QCloseEvent *event)
// the destructor gets called
obs_remove_draw_callback(OBSBasic::RenderMain, this);
SaveProject();
projectChanged = true;
SaveProjectDeferred();
disableSaving++;
/* Clear all scene data (dialogs, widgets, widget sub-items, scenes,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册