UI: Remove unnecessary calls to RefreshSources()
With the previous commit, these calls to `RefreshSources()` are no longer necessary.
This commit is contained in:
parent
71d7b6855d
commit
544633d9bb
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user