mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-03-02 13:27:14 -05:00
UI: Move OpenSavedProjecters call to OBSBasic::Load()
Due to the commit 34c14829b6, source loading is now deferred
to after OBSInit(), which would cause saved scene/source projectors to
no longer load on startup. This fixes that issue by moving the
OpenSavedProjectors call to OBSBasic::Load().
This commit is contained in:
@@ -808,8 +808,11 @@ retryScene:
|
||||
obs_data_array_t *savedProjectors = obs_data_get_array(data,
|
||||
"saved_projectors");
|
||||
|
||||
if (savedProjectors)
|
||||
if (savedProjectors) {
|
||||
LoadSavedProjectors(savedProjectors);
|
||||
OpenSavedProjectors();
|
||||
activateWindow();
|
||||
}
|
||||
|
||||
obs_data_array_release(savedProjectors);
|
||||
}
|
||||
@@ -5622,12 +5625,6 @@ void OBSBasic::OpenSceneWindow()
|
||||
|
||||
void OBSBasic::OpenSavedProjectors()
|
||||
{
|
||||
bool projectorSave = config_get_bool(GetGlobalConfig(),
|
||||
"BasicWindow", "SaveProjectors");
|
||||
|
||||
if (!projectorSave)
|
||||
return;
|
||||
|
||||
for (SavedProjectorInfo *info : savedProjectorsArray) {
|
||||
OBSProjector *projector = nullptr;
|
||||
switch (info->type) {
|
||||
|
||||
Reference in New Issue
Block a user