UI: Add SaveProjectNow function
This adds a function that allows saving the project now instead of deferring it.
This commit is contained in:
parent
0b2e1d6a9c
commit
3a974f5086
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user