提交 3a974f50 编写于 作者: J jp9000

UI: Add SaveProjectNow function

This adds a function that allows saving the project now instead of
deferring it.
上级 0b2e1d6a
......@@ -1124,6 +1124,15 @@ OBSBasic::~OBSBasic()
#endif
}
void OBSBasic::SaveProjectNow()
{
if (disableSaving)
return;
projectChanged = true;
SaveProjectDeferred();
}
void OBSBasic::SaveProject()
{
if (disableSaving)
......@@ -2199,8 +2208,7 @@ void OBSBasic::closeEvent(QCloseEvent *event)
// the destructor gets called
obs_remove_draw_callback(OBSBasic::RenderMain, this);
projectChanged = true;
SaveProjectDeferred();
SaveProjectNow();
disableSaving++;
/* Clear all scene data (dialogs, widgets, widget sub-items, scenes,
......
......@@ -184,6 +184,8 @@ private:
void RefreshProfiles();
void ChangeProfile();
void SaveProjectNow();
obs_hotkey_pair_id streamingHotkeys, recordingHotkeys;
public slots:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册