UI: Remove unnecessary calls to RefreshSources()

With the previous commit, these calls to `RefreshSources()` are no
longer necessary.
This commit is contained in:
tt2468 2021-09-13 03:10:01 -07:00 committed by Jim
parent 71d7b6855d
commit 544633d9bb
2 changed files with 0 additions and 4 deletions

View File

@ -5054,7 +5054,6 @@ void OBSBasic::on_actionAddScene_triggered()
obs_scene_t *scene = obs_scene_create(name.c_str()); obs_scene_t *scene = obs_scene_create(name.c_str());
source = obs_scene_get_source(scene); source = obs_scene_get_source(scene);
SetCurrentScene(source); SetCurrentScene(source);
RefreshSources(scene);
obs_scene_release(scene); obs_scene_release(scene);
} }
} }

View File

@ -273,8 +273,6 @@ void OBSBasicSourceSelect::on_buttonBox_accepted()
obs_get_source_by_name(scene_name.c_str()); obs_get_source_by_name(scene_name.c_str());
main->SetCurrentScene(scene_source, true); main->SetCurrentScene(scene_source, true);
obs_source_release(scene_source); obs_source_release(scene_source);
main->RefreshSources(main->GetCurrentScene());
}; };
obs_data_t *wrapper = obs_data_create(); obs_data_t *wrapper = obs_data_create();
obs_data_set_string(wrapper, "id", id); obs_data_set_string(wrapper, "id", id);
@ -304,7 +302,6 @@ void OBSBasicSourceSelect::on_buttonBox_accepted()
obs_sceneitem_set_id(item, (int64_t)obs_data_get_int( obs_sceneitem_set_id(item, (int64_t)obs_data_get_int(
dat, "item_id")); dat, "item_id"));
main->RefreshSources(main->GetCurrentScene());
obs_data_release(dat); obs_data_release(dat);
obs_sceneitem_release(item); obs_sceneitem_release(item);
}; };